applied SpamServ patch
[srvx.git] / src / proto-common.c
index 4fa2d2b49f5758258911794d5815136703f0893a..26087308bd4fcbac7828890f625aa446195f8787 100644 (file)
@@ -23,6 +23,7 @@
 #include "ioset.h"
 #include "log.h"
 #include "nickserv.h"
+#include "spamserv.h"
 #include "timeq.h"
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
@@ -447,6 +448,8 @@ privmsg_chan_helper(struct chanNode *cn, void *data)
         && (offchannel_allowed[(unsigned char)pd->text[0]]
             || (GetUserMode(cn, cf->service) && !IsDeaf(cf->service))))
         cf->func(pd->user, cn, pd->text+1, cf->service, pd->is_notice);
+    else
+        spamserv_channel_message(cn, pd->user, pd->text);
 
     /* This catches *all* text sent to the channel that the services server sees */
     for (x = 0; x < ALLCHANMSG_FUNCS_MAX; x++) {