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:
prozacx
2005-09-12 03:45:57 +00:00
parent e94dbf13f6
commit da683da5b0
3 changed files with 16 additions and 3 deletions

View File

@@ -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;
}