]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/proto-common.c
Fixed a typo in ROUTING EXAMPLE
[irc/evilnet/x3.git] / src / proto-common.c
index b7d8ee20d47e4d4dacb231c7d9c8ea6df6eefa06..402ea68486011ba5176c9e5794c8b6f666583709 100644 (file)
@@ -444,8 +444,7 @@ privmsg_chan_helper(struct chanNode *cn, void *data)
 
     /* Never send a NOTICE to a channel to one of the services */
     cf = &chanmsg_funcs[(unsigned char)pd->text[0]];
 
     /* Never send a NOTICE to a channel to one of the services */
     cf = &chanmsg_funcs[(unsigned char)pd->text[0]];
-    if (cf->func && !pd->is_notice
-        && GetUserMode(cn, cf->service) && !IsDeaf(cf->service))
+    if (!pd->is_notice && cf->func)
         cf->func(pd->user, cn, pd->text+1, cf->service, pd->is_notice);
     else
         spamserv_channel_message(cn, pd->user, pd->text);
         cf->func(pd->user, cn, pd->text+1, cf->service, pd->is_notice);
     else
         spamserv_channel_message(cn, pd->user, pd->text);