mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Added try/catch for LoadModule
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@484 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -859,7 +859,11 @@ bool CModules::ReloadModule(const CString& sModule, const CString& sArgs, CUser*
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!LoadModule(sMod, sArgs, pUser, sRetMsg)) {
|
||||
try {
|
||||
if (!LoadModule(sMod, sArgs, pUser, sRetMsg)) {
|
||||
return false;
|
||||
}
|
||||
} catch(...) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user