Переглянути джерело

* Port [3381] to 1.2.14
* Fix flood-exempt parsing



svn: 3382

Bryan Drewery 19 роки тому
батько
коміт
7430cf7efb
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/mod/channels.mod/tclchan.c

+ 2 - 2
src/mod/channels.mod/tclchan.c

@@ -469,8 +469,8 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
           simple_snprintf(result, RESULT_LEN, "channel flood-exempt needs argument");
           simple_snprintf(result, RESULT_LEN, "channel flood-exempt needs argument");
         return ERROR;
         return ERROR;
       }
       }
-      if (str_isdigit(item[i])) {
-        if (!egg_strcasecmp("Op", item[i]))
+      if (!str_isdigit(item[i])) {
+        if (!egg_strcasecmp("Op",  item[i]))
           chan->flood_exempt_mode = FLOOD_EXEMPT_OP;
           chan->flood_exempt_mode = FLOOD_EXEMPT_OP;
         else if (!egg_strcasecmp("Voice", item[i]))
         else if (!egg_strcasecmp("Voice", item[i]))
           chan->flood_exempt_mode = FLOOD_EXEMPT_VOICE;
           chan->flood_exempt_mode = FLOOD_EXEMPT_VOICE;