]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a blank error message when trying to load a module with a path.
authorPeter Powell <petpow@saberuk.com>
Fri, 16 Jan 2015 03:14:35 +0000 (03:14 +0000)
committerPeter Powell <petpow@saberuk.com>
Fri, 16 Jan 2015 03:14:35 +0000 (03:14 +0000)
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());