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...
This commit is contained in:
James Vega 2003-11-11 16:33:38 +00:00
parent e9b64d443a
commit d60df81a40
1 changed files with 1 additions and 1 deletions

View File

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