]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modmanager_static.cpp
Merge pull request #1221 from SaberUK/master+isupport-maxlist
[user/henk/code/inspircd.git] / src / modmanager_static.cpp
index ac127b7031b2d5f0e8a61ec56f111396a2e4a3c3..9a385dd3ced80d70e41a41d19a6a5c882718d4c5 100644 (file)
@@ -23,7 +23,7 @@
 #include "exitcodes.h"
 #include <iostream>
 
-#ifdef PURE_STATIC
+#ifdef INSPIRCD_STATIC
 
 typedef std::map<std::string, AllModuleList*> modmap;
 static std::vector<AllCommandList::fn>* cmdlist = NULL;
@@ -72,7 +72,7 @@ class AllModule : public Module
                stdalgo::delete_all(cmds);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("All commands", VF_VENDOR|VF_CORE);
        }
@@ -80,8 +80,9 @@ class AllModule : public Module
 
 MODULE_INIT(AllModule)
 
-bool ModuleManager::Load(const std::string& name, bool defer)
+bool ModuleManager::Load(const std::string& inputname, bool defer)
 {
+       const std::string name = ExpandModName(inputname);
        modmap::iterator it = modlist->find(name);
        if (it == modlist->end())
                return false;