Spamserv is now ignoring IRC-OPs
authorNurPech <nurpech@nurpech.de>
Mon, 15 Jul 2013 18:15:39 +0000 (20:15 +0200)
committerNurPech <nurpech@nurpech.de>
Mon, 15 Jul 2013 18:16:29 +0000 (20:16 +0200)
src/spamserv.c

index ddb3c16e1d96fe1ae214c59e4a54628340bb7ace..e4bcf4bb76161800364b5c785ece033286c91af0 100644 (file)
@@ -576,7 +576,11 @@ spamserv_user_join(struct modeNode *mNode)
 
        if(user->uplink->burst || !(cInfo = get_chanInfo(channel->name)) || !CHECK_JOINFLOOD(cInfo) || !(uInfo = get_userInfo(user->nick)))
                return 0;
-        
+
+       if(IsOper(user))
+       {
+               return;
+       }
         
     if(!CHECK_CHANOPS(cInfo))
        {
@@ -1602,6 +1606,11 @@ spamserv_channel_message(struct chanNode *channel, struct userNode *user, char *
        if(!spamserv || quit_services || !GetUserMode(channel, spamserv) || !(cInfo = get_chanInfo(channel->name)) || !(uInfo = get_userInfo(user->nick)))
                return;
 
+       if(IsOper(user))
+       {
+               return;
+       }
+
        if(!CHECK_CHANOPS(cInfo))
        {
                struct modeNode *mn = GetUserMode(channel, user);