mirror of
https://github.com/znc/znc.git
synced 2026-05-06 21:42:28 +02:00
Use that new define everywhere
Now there are no uses of DEBUG_ONLY() left :( git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1349 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -86,7 +86,7 @@ public:
|
||||
}
|
||||
|
||||
if (pUser && m_Cache.HasItem(CString(Auth->GetUsername() + ":" + Auth->GetPassword()).MD5())) {
|
||||
DEBUG_ONLY(cerr << "+++ Found in cache" << endl);
|
||||
DEBUG("+++ Found in cache");
|
||||
Auth->AcceptLogin(*pUser);
|
||||
return HALT;
|
||||
}
|
||||
@@ -140,10 +140,10 @@ void CIMAPSock::ReadLine(const CString& sLine) {
|
||||
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);
|
||||
DEBUG("+++ Successful IMAP lookup");
|
||||
} else {
|
||||
m_spAuth->RefuseLogin("Invalid Password");
|
||||
DEBUG_ONLY(cerr << "--- FAILED IMAP lookup" << endl);
|
||||
DEBUG("--- FAILED IMAP lookup");
|
||||
}
|
||||
|
||||
m_bSentReply = true;
|
||||
|
||||
Reference in New Issue
Block a user