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:
prozacx
2006-04-08 19:48:02 +00:00
parent caf61d09ce
commit 43e4482d87
+1 -1
View File
@@ -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
}