diff options
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/modules.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index 00b7ed5f7..948339cb6 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1295,7 +1295,7 @@ class Server : public classbase */ Module* FindFeature(const std::string &FeatureName); - const char* GetModuleName(Module* m); + const std::string& GetModuleName(Module* m); /** Writes a log string. * This method writes a line of text to the log. If the level given is lower than the 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 ""; |