Return true if authed immediately by module

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@695 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-03-16 10:02:15 +00:00
parent 3572582995
commit e0d3cfa5db

View File

@@ -241,7 +241,12 @@ bool CWebAdminSock::OnLogin(const CString& sUser, const CString& sPass) {
m_spAuth = new CWebAdminAuth(this, sUser, sPass);
if (CZNC::Get().GetModules().OnLoginAttempt(m_spAuth)) {
if (IsLoggedIn()) {
return true;
}
PauseRead();
return false;
}