From d60df81a402d930874de85048bd960c1bc3ddd42 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 11 Nov 2003 16:33:38 +0000 Subject: [PATCH] zeropad the color code used in colorize so that we don't lose characters, at least any more than we already lose to the irc character limit, which will be even more now that we are zeropadding... --- plugins/Fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Fun.py b/plugins/Fun.py index 69deff27b..105469ada 100644 --- a/plugins/Fun.py +++ b/plugins/Fun.py @@ -558,7 +558,7 @@ class Fun(callbacks.Privmsg): def _color(self, c): if c == ' ': return c - fg = random.randint(2, 15) + fg = str(random.randint(2, 15)).zfill(2) return '\x03%s%s' % (fg, c) def colorize(self, irc, msg, args):