diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 17:59:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 17:59:42 +0000 |
commit | de4a3f44b95620c1e220668517f5025039f07877 (patch) | |
tree | 23ceada70e7ad5353e9621788361fc18264d80ab | |
parent | 04b29a4e89df5e88532dbd87e1df6691e550a2c7 (diff) |
Fix whoopsies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4239 e03df62e-2008-0410-955e-edbf42e46eb7
-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 ""; |