From e0d3cfa5db6f4387dde1ac123b93f4e566bacf69 Mon Sep 17 00:00:00 2001 From: prozacx Date: Thu, 16 Mar 2006 10:02:15 +0000 Subject: [PATCH] Return true if authed immediately by module git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@695 726aef4b-f618-498e-8847-2d620e286838 --- modules/webadmin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/webadmin.cpp b/modules/webadmin.cpp index f9805cc6..8c8113df 100644 --- a/modules/webadmin.cpp +++ b/modules/webadmin.cpp @@ -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; }