소스 검색

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

Bryan Drewery 14 년 전
부모
커밋
a150df9a34
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;