From cbd8fb1d890ba31e607de81fbb49da80498cc61e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 16 Aug 2009 03:29:04 +0200 Subject: mad-server: Load modules in config file --- src/Common/ModuleManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common') diff --git a/src/Common/ModuleManager.cpp b/src/Common/ModuleManager.cpp index fc82ea8..551229c 100644 --- a/src/Common/ModuleManager.cpp +++ b/src/Common/ModuleManager.cpp @@ -59,7 +59,7 @@ bool ModuleManager::handleConfigEntry(const Core::ConfigEntry &entry, bool handl if(handled) return false; - if(entry[0].getKey().matches("LoadModule")) { + if(entry[0].getKey().matches("LoadModule") && entry[1].empty()) { if(!loadModule(entry[0][0].c_str())) application->logf(Core::LoggerBase::ERROR, "Can't load module '%s'.", entry[0][0].c_str()); -- cgit v1.2.3