mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +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:
@@ -62,17 +62,17 @@ public:
|
||||
CString const key(CString(user + ":" + pass).MD5());
|
||||
if (m_Cache.HasItem(key)) {
|
||||
Auth->AcceptLogin(*pUser);
|
||||
DEBUG_ONLY(cerr << "+++ Found in cache" << endl);
|
||||
DEBUG("+++ Found in cache");
|
||||
}
|
||||
else if (sasl_server_new("znc", NULL, NULL, NULL, NULL, cbs, 0, &sasl_conn) == SASL_OK &&
|
||||
sasl_checkpass(sasl_conn, user.c_str(), user.size(), pass.c_str(), pass.size()) == SASL_OK) {
|
||||
Auth->AcceptLogin(*pUser);
|
||||
m_Cache.AddItem(key);
|
||||
DEBUG_ONLY(cerr << "+++ Successful SASL password check" << endl);
|
||||
DEBUG("+++ Successful SASL password check");
|
||||
}
|
||||
else {
|
||||
Auth->RefuseLogin("SASL Authentication failed");
|
||||
DEBUG_ONLY(cerr << "--- FAILED SASL password check" << endl);
|
||||
DEBUG("--- FAILED SASL password check");
|
||||
}
|
||||
|
||||
sasl_dispose(&sasl_conn);
|
||||
|
||||
Reference in New Issue
Block a user