]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
Fixed bug - Authrozied hosts doesnt work when providing user ip
authorMrBean <redacted>
Thu, 5 Apr 2012 17:40:12 +0000 (20:40 +0300)
committerMrBean <redacted>
Thu, 5 Apr 2012 17:40:12 +0000 (20:40 +0300)
mod.ccontrol/LOGINCommand.cc

index afe420c0ad3817cd417270592dce3c2e4996d517..d95a00dbbb594b9206f56d338ac171624c39591a 100644 (file)
@@ -101,9 +101,8 @@ else
                return false;
                }
        //Check if the users mask is in his access list
-               
        if((!bot->UserGotMask(theUser,theClient->getRealNickUserHost()))
-           &&(!bot->UserGotMask(theUser,xIP(theClient->getIP()).GetNumericIP())))      
+           &&(!bot->UserGotMask( theUser,theClient->getNickName() + "!" + theClient->getUserName() + "@" + xIP(theClient->getIP()).GetNumericIP())))   
                {
                bot->MsgChanLog("[FAILED LOGIN] %s - No HostMask\n",theClient->getRealNickUserHost().c_str());