mirror of
https://github.com/znc/znc.git
synced 2026-06-12 01:34:58 +02: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:
+5
-1
@@ -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