Remove a self-assignment due to copy&paste

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1831 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-03-15 15:36:04 +00:00
parent cb193d8f72
commit d76f193b6b
2 changed files with 3 additions and 6 deletions

View File

@@ -527,7 +527,7 @@ bool CWebSock::OnPageRequestInternal(const CString& sURI, CString& sPageRet) {
if (GetParam("submitted").ToBool()) {
m_sUser = GetParam("user");
m_sPass = GetParam("pass");
m_bLoggedIn = OnLogin(m_sUser, m_sPass);
OnLogin(m_sUser, m_sPass);
Redirect("/");
return true;
@@ -661,7 +661,7 @@ CSmartPtr<CWebSession> CWebSock::GetSession() {
return spSession;
}
bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
void CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
DEBUG("=================== CWebSock::OnLogin()");
m_spAuth = new CWebAuth(this, sUser, sPass);
@@ -669,9 +669,6 @@ bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
// until then. CWebAuth will UnPauseRead().
PauseRead();
CZNC::Get().AuthUser(m_spAuth);
// If CWebAuth already set this, don't change it.
return IsLoggedIn();
}
Csock* CWebSock::GetSockObj(const CString& sHost, unsigned short uPort) {