From 87af05d4b693cb7d98799b10b9e4fce33ad14a71 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 30 Mar 2016 19:31:23 +0100 Subject: added a "hashflag" to modules to stop modules being loaded that rely on a not-present config option. --- modules/commands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/commands.py') diff --git a/modules/commands.py b/modules/commands.py index 07fbbaed..de941f77 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -1,3 +1,5 @@ +import Utils + STR_MORE = " (more...)" STR_CONTINUED = "(...continued) " @@ -30,10 +32,12 @@ class Out(object): class StdOut(Out): def prefix(self): - return self.module_name + return "%s%s%s" % (Utils.color(Utils.COLOR_GREEN), + self.module_name, Utils.FONT_RESET) class StdErr(Out): def prefix(self): - return "!%s" % self.module_name + return "%s!%s%s" % (Utils.color(Utils.COLOR_RED), + self.module_name, Utils.FONT_RESET) class Module(object): def __init__(self, bot): -- cgit v1.3.1-10-gc9f91