aboutsummaryrefslogtreecommitdiff
path: root/ModuleManager.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-04-06 16:03:38 +0100
committerGravatar jesopo2016-04-06 16:03:38 +0100
commit20058c4b674d7ac41f085d4a3fa993d580438606 (patch)
treed40c9dba38ab4b0c47338f67428df25f276fb1ed /ModuleManager.py
parentadded spotify.py and soundcloud.py, updated bot.json.example. (diff)
added an extra check related to the --require-config hashflag, causing a non-true value to be counted as not present.
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(