mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
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:
parent
e9b64d443a
commit
d60df81a40
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user