From f3d8d35083b6e1f2cff424522615c6dc6afad5aa Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 01:42:28 +0100 Subject: Send a FONT_RESET (\x0F) after stderr module names because a bug in weechat pre-2.2 means that because red colors are displayed as red+bold, the second FONT_COLOR (\x03) only resets the red coloring, not the bold, meaning the rest of the line is bold. --- modules/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/commands.py b/modules/commands.py index 436dd7f1..74488ee7 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -38,11 +38,11 @@ class Out(object): class StdOut(Out): def prefix(self): return "%s%s%s" % (Utils.color(Utils.COLOR_GREEN), - self.module_name, Utils.FONT_COLOR) + self.module_name, Utils.FONT_RESET) class StdErr(Out): def prefix(self): return "%s!%s%s" % (Utils.color(Utils.COLOR_RED), - self.module_name, Utils.FONT_COLOR) + self.module_name, Utils.FONT_RESET) class Module(object): def __init__(self, bot, events, exports): -- cgit v1.3.1-10-gc9f91