]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
Fixed bug - X doesnt kick users who are banned with level >=75 after they login
authorMrBean <redacted>
Fri, 20 Apr 2012 17:32:15 +0000 (20:32 +0300)
committerMrBean <redacted>
Fri, 20 Apr 2012 17:32:15 +0000 (20:32 +0300)
mod.cservice/LOGINCommand.cc

index b485c2971776728f096d8cd0df5310bd3278a9e0..c37e0399cf977e5d46cca2ef0c2f8c1d86963e58 100755 (executable)
@@ -576,10 +576,14 @@ for (autoOpVectorType::const_iterator resultPtr = autoOpVector.begin();
         */
 
        sqlBan* tmpBan = bot->isBannedOnChan(theChan, theClient);
-       if( tmpBan && (tmpBan->getLevel() < 75) )
-               {
-               continue;
+       if( tmpBan) {
+               if (tmpBan->getLevel() < 75)  {
+                       continue;
+               } else {
+                       bot->Kick(netChan,theClient,tmpBan->getReason());
+                       continue;
                }
+       }
 
        /*
         *  If its AUTOOP, check for op's and do the deed.