]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #968 from ShutterQuick/insp20+sporder
authorAttila Molnar <attilamolnar@hush.com>
Sat, 17 Jan 2015 14:19:08 +0000 (15:19 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 17 Jan 2015 14:19:08 +0000 (15:19 +0100)
cmd_list: Give +s precedence to +p

src/modmanager_dynamic.cpp

index 045b488b5b55021e877a6f404c84b80b307d0896..050f41c758379e7581fea0054287a3532d885c7e 100644 (file)
@@ -36,7 +36,10 @@ bool ModuleManager::Load(const std::string& filename, bool defer)
 {
        /* Don't allow people to specify paths for modules, it doesn't work as expected */
        if (filename.find('/') != std::string::npos)
+       {
+               LastModuleError = "You can't load modules with a path: " + filename;
                return false;
+       }
 
        char modfile[MAXBUF];
        snprintf(modfile,MAXBUF,"%s/%s",ServerInstance->Config->ModPath.c_str(),filename.c_str());