mirror of
https://github.com/znc/znc.git
synced 2026-05-03 20:12:29 +02:00
Check if the version of a module matches when querying info about it
When the module was compiled for a wrong ZNC version it's description will say so. Everything which displays a list of available modules together with their description will display this (--makeconf, /msg *status listavailmods, webadmin). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1420 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -953,6 +953,11 @@ bool CModules::GetModInfo(CModInfo& ModInfo, const CString& sModule) {
|
||||
ModInfo.SetDescription(GetDescription());
|
||||
ModInfo.SetName(sModule);
|
||||
ModInfo.SetPath(sModPath);
|
||||
|
||||
if (CModule::GetCoreVersion() != Version()) {
|
||||
ModInfo.SetDescription("--- Version mismatch, recompile this module. ---");
|
||||
}
|
||||
|
||||
dlclose(p);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user