step over ! if it's allowed on MODE_NOFLOOD
authorpk910 <philipp@zoelle1.de>
Sun, 17 Jul 2011 15:20:11 +0000 (17:20 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 17 Jul 2011 15:20:11 +0000 (17:20 +0200)
src/proto-p10.c

index 1265aea61562b7036311942ab6c883fd32a5ef93..c1271db0934dfca74cb5f6418ab4c72460016fe1 100644 (file)
@@ -2644,10 +2644,11 @@ mod_chanmode_parse(struct chanNode *channel, char **modes, unsigned int argc, un
                            if (in_arg >= argc)
                     goto error;
                 char *mode = modes[in_arg++];
-                if(mode[0] == '!' && !(flags & MCP_OPERMODE)) { //noflood flag also for overriders
-                    //only allow opers
-                    goto error;
-                }
+                if(mode[0] == '!' && !(flags & MCP_OPERMODE)) //noflood flag also for overriders
+                   goto error;//only allow opers
+                else if(mode[0] == '!')
+                   mode++;
+                
                 if(mode[0] == '+' || mode[0] == '@') {
                     mode++;
                 }