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.
This commit is contained in:
jesopo 2018-09-19 01:42:28 +01:00
parent b3609db92c
commit f3d8d35083

View file

@ -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):