summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-06-04 00:03:29 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-06-04 00:03:29 +0200
commit9b9326ff08565c6cf4acdc865884cc7c1f426822 (patch)
tree2454f2f73c99df2a337eae7d0a936d70dac77ded /src/configreader.cpp
parent1e68ff30df59dc1e063a678134705d177b2e4562 (diff)
Expand module names in ServerConfig::ApplyModules()
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 68495623c..974e52abf 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -671,6 +671,7 @@ void ServerConfig::ApplyModules(User* user)
std::string name;
if (tag->readString("name", name))
{
+ name = ModuleManager::ExpandModName(name);
// if this module is already loaded, the erase will succeed, so we need do nothing
// otherwise, we need to add the module (which will be done later)
if (removed_modules.erase(name) == 0)