mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Throw exception on version mismatch
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@190 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-1
@@ -539,7 +539,8 @@ bool CModules::LoadModule(const string& sModule, const string& sArgs, CUser* pUs
|
||||
|
||||
if (CModule::GetVersion() != Version()) {
|
||||
dlclose(p);
|
||||
sRetMsg = "Version mismatch in module [" + sModule + "] - You need to recompile your modules using this version of znc.";
|
||||
sRetMsg = "Version mismatch, recompile this module.";
|
||||
throw CException(CException::EX_BadModVersion);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user