aboutsummaryrefslogtreecommitdiff
path: root/ModuleManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'ModuleManager.py')
-rw-r--r--ModuleManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ModuleManager.py b/ModuleManager.py
index e9835a43..fc30711e 100644
--- a/ModuleManager.py
+++ b/ModuleManager.py
@@ -25,7 +25,8 @@ class ModuleManager(object):
return None
elif line_split[0] == "#--require-config" and len(
line_split) > 1:
- if not line_split[1].lower() in self.bot.config:
+ if not line_split[1].lower() in self.bot.config or not self.bot.config[
+ line_split[1].lower()]:
# nope, required config option not present.
return None
elif line_split[0] == "#--require-module" and len(