Filter: fix rainbow so it doesn't fail with numbers.

fixing this bug: https://sourceforge.net/tracker/?func=detail&aid=3140981&group_id=58965&atid=489447

Thanks to The Compiler for the report and the fix.
This commit is contained in:
Daniel Folkinshteyn 2011-01-24 16:18:01 -05:00
parent a6d361573d
commit 3151d08e73
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class Filter(callbacks.Plugin):
Returns <text> colorized like a rainbow.
"""
colors = utils.iter.cycle([4, 7, 8, 3, 2, 12, 6])
colors = utils.iter.cycle(['04', '07', '08', '03', '02', '12', '06'])
L = [self._color(c, fg=colors.next()) for c in text]
irc.reply(''.join(L) + '\x03')
rainbow = wrap(rainbow, ['text'])