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:
parent
b3609db92c
commit
f3d8d35083
1 changed files with 2 additions and 2 deletions
|
@ -38,11 +38,11 @@ class Out(object):
|
||||||
class StdOut(Out):
|
class StdOut(Out):
|
||||||
def prefix(self):
|
def prefix(self):
|
||||||
return "%s%s%s" % (Utils.color(Utils.COLOR_GREEN),
|
return "%s%s%s" % (Utils.color(Utils.COLOR_GREEN),
|
||||||
self.module_name, Utils.FONT_COLOR)
|
self.module_name, Utils.FONT_RESET)
|
||||||
class StdErr(Out):
|
class StdErr(Out):
|
||||||
def prefix(self):
|
def prefix(self):
|
||||||
return "%s!%s%s" % (Utils.color(Utils.COLOR_RED),
|
return "%s!%s%s" % (Utils.color(Utils.COLOR_RED),
|
||||||
self.module_name, Utils.FONT_COLOR)
|
self.module_name, Utils.FONT_RESET)
|
||||||
|
|
||||||
class Module(object):
|
class Module(object):
|
||||||
def __init__(self, bot, events, exports):
|
def __init__(self, bot, events, exports):
|
||||||
|
|
Loading…
Reference in a new issue