mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01: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:
@@ -609,14 +609,14 @@ bool CWebAdminSock::SettingsPage(CString& sPageRet) {
|
||||
CModule *pMod = CZNC::Get().GetModules().FindModule(sModName);
|
||||
if (!pMod) {
|
||||
if (!CZNC::Get().GetModules().LoadModule(sModName, sArgs, NULL, sModRet)) {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "] [" << sModRet << "]" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "] [" << sModRet << "]");
|
||||
}
|
||||
} else if (pMod->GetArgs() != sArgs) {
|
||||
if (!CZNC::Get().GetModules().ReloadModule(sModName, sArgs, NULL, sModRet)) {
|
||||
DEBUG_ONLY(cerr << "Unable to reload module [" << sModName << "] [" << sModRet << "]" << endl);
|
||||
DEBUG("Unable to reload module [" << sModName << "] [" << sModRet << "]");
|
||||
}
|
||||
} else {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "] because it is already loaded" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "] because it is already loaded");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1047,10 +1047,10 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
|
||||
|
||||
try {
|
||||
if (!pNewUser->GetModules().LoadModule(sModName, sArgs, pNewUser, sModRet, (pUser != NULL))) {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "] [" << sModRet << "]" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "] [" << sModRet << "]");
|
||||
}
|
||||
} catch (...) {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "] [" << sArgs << "]" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "] [" << sArgs << "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1064,10 +1064,10 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
|
||||
|
||||
try {
|
||||
if (!pNewUser->GetModules().LoadModule(sModName, sArgs, pNewUser, sModRet, (pUser != NULL))) {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "] [" << sModRet << "]" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "] [" << sModRet << "]");
|
||||
}
|
||||
} catch (...) {
|
||||
DEBUG_ONLY(cerr << "Unable to load module [" << sModName << "]" << endl);
|
||||
DEBUG("Unable to load module [" << sModName << "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user