commit 2f7d0abbe36e10c7d42299036bfb0856b7dcb1c3
parent 0e6d4feefa0c47785ca26157bf003c323b75dc29
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 4 Jul 2012 06:27:03 +0200
use two-digit color codes to avoid problem with leading digits in text
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wikifirc b/wikifirc
@@ -31,7 +31,7 @@ colors = {
def colorize(text, color):
"""colorize for IRC, cf. http://irssi.org/documentation/formats"""
- return "\x03%d%s\x030" % (colors[color], text)
+ return "\x03%02d%s\x0300" % (colors[color], text)
class Change:
def __init__(self, project, data):