]> 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 467462f2aa3f1c5f0e258b16f63eee8870142a77..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 (!pd->is_notice && cf->func
-        && ((cn->modes & MODE_REGISTERED) || GetUserMode(cn, 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);