mirror of
https://github.com/znc/znc.git
synced 2026-04-30 18:42:25 +02:00
Use CString::Equals() everywhere.
* (CString::CaseCmp() == 0) became CString::Equals() * (CString::CaseCmp() != 0) became !CString::Equals() * replaced some occurrences of strn?casecmp git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1234 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -137,7 +137,7 @@ void CIMAPSock::ReadLine(const CString& sLine) {
|
||||
} else {
|
||||
CUser* pUser = CZNC::Get().FindUser(m_spAuth->GetUsername());
|
||||
|
||||
if (pUser && sLine.Left(7).CaseCmp("AUTH OK") == 0) {
|
||||
if (pUser && sLine.Equals("AUTH OK", false, 7)) {
|
||||
m_spAuth->AcceptLogin(*pUser);
|
||||
m_pIMAPMod->CacheLogin(CString(m_spAuth->GetUsername() + ":" + m_spAuth->GetPassword()).MD5()); // Use MD5 so passes don't sit in memory in plain text
|
||||
DEBUG_ONLY(cerr << "+++ Successful IMAP lookup" << endl);
|
||||
|
||||
Reference in New Issue
Block a user