diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index d6119bd5b..334315d72 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -292,13 +292,13 @@ Module* Server::FindFeature(const std::string &FeatureName) return iter->second; } -const char* Server::GetModuleName(Module* m) +const std::string& Server::GetModuleName(Module* m) { for (int i = 0; i <= MODCOUNT; i++) { if (modules[i] == m) { - return module_names[i]; + return Config->module_names[i]; } } return ""; |