diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-17 14:37:27 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-17 14:37:27 +0100 |
commit | 25542af56d0edad33104fe3314fdfaf0fcf381fb (patch) | |
tree | ed5070ce7f8ab3566d149f82020818b11ee167df /src/modmanager_dynamic.cpp | |
parent | 225322b46f888fb034c87aea45fdde3f941c6450 (diff) | |
parent | 74a95f4e1312ef5a628da484b6cb39c417e2fceb (diff) |
Merge pull request #966 from SaberUK/insp20+fix-error-message
Fix a blank error message when trying to load a module with a path.
Diffstat (limited to 'src/modmanager_dynamic.cpp')
-rw-r--r-- | src/modmanager_dynamic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index 045b488b5..050f41c75 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -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()); |