]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modmanager_dynamic.cpp
Add PackageInfo directives for Debian.
[user/henk/code/inspircd.git] / src / modmanager_dynamic.cpp
index 9a687ad2bf1af38002134ff30aefc3f288ff6603..644d2140f614435dbc9e51f286fc34fb22ded050 100644 (file)
@@ -25,7 +25,7 @@
 #include <dirent.h>
 #endif
 
-#ifndef PURE_STATIC
+#ifndef INSPIRCD_STATIC
 
 bool ModuleManager::Load(const std::string& modname, bool defer)
 {
@@ -71,6 +71,8 @@ bool ModuleManager::Load(const std::string& modname, bool defer)
                        newmod->dying = false;
                        Modules[filename] = newmod;
                        std::string version = newhandle->GetVersion();
+                       if (version.empty())
+                               version.assign("unknown");
                        if (defer)
                        {
                                ServerInstance->Logs->Log("MODULE", LOG_DEFAULT, "New module introduced: %s (Module version %s)",