diff options
| author | 2016-04-06 16:03:38 +0100 | |
|---|---|---|
| committer | 2016-04-06 16:03:38 +0100 | |
| commit | 20058c4b674d7ac41f085d4a3fa993d580438606 (patch) | |
| tree | d40c9dba38ab4b0c47338f67428df25f276fb1ed | |
| parent | added 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.
| -rw-r--r-- | ModuleManager.py | 3 |
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( |
