mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
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:
parent
a6d361573d
commit
3151d08e73
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user