Saved a few characters in our colorization of Google.

This commit is contained in:
Jeremy Fincher 2004-10-03 10:00:46 +00:00
parent eace0b5c55
commit 571a107ace

View File

@ -225,11 +225,11 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
ret = self._colorGoogles.get(s) ret = self._colorGoogles.get(s)
if not ret: if not ret:
L = list(s) L = list(s)
L[0] = ircutils.mircColor(L[0], 'blue') L[0] = ircutils.mircColor(L[0], 'blue')[:-1]
L[1] = ircutils.mircColor(L[1], 'red') L[1] = ircutils.mircColor(L[1], 'red')[:-1]
L[2] = ircutils.mircColor(L[2], 'yellow') L[2] = ircutils.mircColor(L[2], 'yellow')[:-1]
L[3] = ircutils.mircColor(L[3], 'blue') L[3] = ircutils.mircColor(L[3], 'blue')[:-1]
L[4] = ircutils.mircColor(L[4], 'green') L[4] = ircutils.mircColor(L[4], 'green')[:-1]
L[5] = ircutils.mircColor(L[5], 'red') L[5] = ircutils.mircColor(L[5], 'red')
ret = ''.join(L) ret = ''.join(L)
self._colorGoogles[s] = ret self._colorGoogles[s] = ret