ignore badwords on channels watchdog isn't in
authorpk910 <philipp@zoelle1.de>
Thu, 25 Aug 2011 02:42:13 +0000 (04:42 +0200)
committerpk910 <philipp@zoelle1.de>
Fri, 26 Aug 2011 09:48:14 +0000 (11:48 +0200)
src/mod-watchdog.c

index 4f8f27b04a3182c3e6997504dd7a319e821271a7..690ed0d2069d11cdb9531b44f141d7a6caf57ffb 100644 (file)
@@ -381,7 +381,7 @@ watchdog_channel_message(struct userNode *user, struct chanNode *chan, const cha
 {
     dict_iterator_t it;
 
-    if(!watchdog)
+    if(!watchdog || !dict_find(chanlist, chan->name, NULL))
         return;
 
     for (it = dict_first(shitlist); it; it = iter_next(it)) {