diff options
| author | 2018-11-13 16:02:26 +0000 | |
|---|---|---|
| committer | 2018-11-13 16:02:26 +0000 | |
| commit | 8b9062b942e93db587eb67e98767660c8ec4e482 (patch) | |
| tree | b7e52998dacf648038a54617fd9a73e7334df5b2 /modules/commands.py | |
| parent | I was accidentally removing two characters from the start of :nick!user@host (diff) | |
Better constifying of color/font chars
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands.py b/modules/commands.py index 39ff4564..9e65a302 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -1,7 +1,7 @@ import re from src import EventManager, ModuleManager, utils -STR_MORE = "%s (more...)" % utils.irc.FONT_RESET +STR_MORE = "%s (more...)" % utils.consts.RESET STR_CONTINUED = "(...continued) " COMMAND_METHOD = "command-method" @@ -44,7 +44,7 @@ class Out(object): prefix = "" if not self._hide_prefix: - prefix = utils.irc.FONT_RESET + "[%s] " % self.prefix() + prefix = utils.consts.RESET + "[%s] " % self.prefix() method = self._get_method() if method == "PRIVMSG": @@ -68,11 +68,11 @@ class Out(object): class StdOut(Out): def prefix(self): return utils.irc.color(utils.irc.bold(self.module_name), - utils.irc.COLOR_GREEN) + utils.consts.GREEN) class StdErr(Out): def prefix(self): return utils.irc.color(utils.irc.bold("!"+self.module_name), - utils.irc.COLOR_RED) + utils.consts.RED) def _command_method_validate(s): if s.upper() in COMMAND_METHODS: |
