Browse Source

Fix sanity check to return if not capslimit and not colorlimit (#8)

Bryan Drewery 14 năm trước cách đây
mục cha
commit
a150df9a34
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -118,7 +118,7 @@ static int
 detect_offense(memberlist* m, struct chanset_t *chan, char *msg)
 {
   if (!chan || !msg
-      || !(chan->capslimit && chan->colorlimit)
+      || !(chan->capslimit || chan->colorlimit)
       || chan_sentkick(m)) //sanity check
     return 0;