From de4a3f44b95620c1e220668517f5025039f07877 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 17:59:42 +0000 Subject: Fix whoopsies git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4239 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 2 +- 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 ""; -- cgit v1.2.3