Fixed bug in rainbow function which breaks output with numbers

This commit is contained in:
mrhanky 2017-08-01 15:50:12 +02:00
parent 18e09a1a57
commit ba9cdd2527
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8
2 changed files with 3 additions and 1 deletions

2
TODOs Normal file
View File

@ -0,0 +1,2 @@
10:49 <&McManiaC> .jn 'fu
10:49 <%nxy> Invalid arguments: No closing quotation.

View File

@ -311,4 +311,4 @@ class Useless(DatabasePlugin):
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
def _rainbow(self, i, char): def _rainbow(self, i, char):
return '\x030{}{}'.format(RAINBOW[i % RAINBOW_LEN], char) return '\x030{0:02d}{1}'.format(RAINBOW[i % RAINBOW_LEN], char)