mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Don't throw any exceptions in CModules::LoadModule() on version mismatch
This also removes all the code catching those exceptions. There was nothing which justified these exceptions and removing them doesn't hurt. ByeBye CException::EX_BadModVersion git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1137 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+7
-7
@@ -1313,14 +1313,14 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
}
|
||||
|
||||
CString sModRet;
|
||||
bool b;
|
||||
|
||||
try {
|
||||
if (bGlobal) {
|
||||
CZNC::Get().GetModules().LoadModule(sMod, sArgs, NULL, sModRet);
|
||||
} else {
|
||||
m_pUser->GetModules().LoadModule(sMod, sArgs, m_pUser, sModRet);
|
||||
}
|
||||
} catch (CException e) {
|
||||
if (bGlobal) {
|
||||
b = CZNC::Get().GetModules().LoadModule(sMod, sArgs, NULL, sModRet);
|
||||
} else {
|
||||
b = m_pUser->GetModules().LoadModule(sMod, sArgs, m_pUser, sModRet);
|
||||
}
|
||||
if (!b) {
|
||||
PutStatus("Unable to load module [" + sMod + "] [" + sModRet + "]");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user