summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 17:59:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 17:59:42 +0000
commitde4a3f44b95620c1e220668517f5025039f07877 (patch)
tree23ceada70e7ad5353e9621788361fc18264d80ab /src
parent04b29a4e89df5e88532dbd87e1df6691e550a2c7 (diff)
Fix whoopsies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4239 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp4
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 "";