ignore badwords on channels watchdog isn't in
[srvx.git] / 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)) {