mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Saved a few characters in our colorization of Google.
This commit is contained in:
parent
eace0b5c55
commit
571a107ace
@ -225,11 +225,11 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
||||
ret = self._colorGoogles.get(s)
|
||||
if not ret:
|
||||
L = list(s)
|
||||
L[0] = ircutils.mircColor(L[0], 'blue')
|
||||
L[1] = ircutils.mircColor(L[1], 'red')
|
||||
L[2] = ircutils.mircColor(L[2], 'yellow')
|
||||
L[3] = ircutils.mircColor(L[3], 'blue')
|
||||
L[4] = ircutils.mircColor(L[4], 'green')
|
||||
L[0] = ircutils.mircColor(L[0], 'blue')[:-1]
|
||||
L[1] = ircutils.mircColor(L[1], 'red')[:-1]
|
||||
L[2] = ircutils.mircColor(L[2], 'yellow')[:-1]
|
||||
L[3] = ircutils.mircColor(L[3], 'blue')[:-1]
|
||||
L[4] = ircutils.mircColor(L[4], 'green')[:-1]
|
||||
L[5] = ircutils.mircColor(L[5], 'red')
|
||||
ret = ''.join(L)
|
||||
self._colorGoogles[s] = ret
|
||||
|
Loading…
Reference in New Issue
Block a user