* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
return;
}
- h = dlopen(fname, RTLD_NOW|RTLD_LOCAL|RTLD_NODELETE);
+ h = dlopen(fname, RTLD_NOW|RTLD_LOCAL);
if (!h)
{
err = dlerror();
Module* (*fptr)();
};
-Module* DLLManager::callInit()
+Module* DLLManager::CallInit()
{
if (!h)
return NULL;
return (*initfn.fptr)();
}
+
+std::string DLLManager::GetVersion()
+{
+ if (!h)
+ return "";
+
+ const char* srcver = (char*)dlsym(h, "inspircd_src_version");
+ if (srcver)
+ return srcver;
+ return "Unversioned module";
+}