mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Fixed potential bug in OnFailedLogin() global hook, thanks x-x
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@722 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -1223,7 +1223,7 @@ void CClientAuth::RefuseLogin(const CString& sReason) {
|
||||
m_pClient->RefuseLogin(sReason);
|
||||
}
|
||||
#ifdef _MODULES
|
||||
CZNC::Get().GetModules().OnFailedLogin(GetUsername(), m_pClient->GetRemoteIP());
|
||||
CZNC::Get().GetModules().OnFailedLogin(GetUsername(), ((m_pClient) ? m_pClient->GetRemoteIP() : CString("")));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user