From 20058c4b674d7ac41f085d4a3fa993d580438606 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 6 Apr 2016 16:03:38 +0100 Subject: added an extra check related to the --require-config hashflag, causing a non-true value to be counted as not present. --- ModuleManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ModuleManager.py') 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( -- cgit v1.3.1-10-gc9f91