From 33f2818398eedd683dc3cf2c63ab438d2454fdde Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 30 Jul 2003 11:01:44 +0000 Subject: [PATCH] Made Relay use ircutils.canonicalColor. --- plugins/Relay.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/Relay.py b/plugins/Relay.py index 21989060e..41a9d4092 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -261,15 +261,11 @@ class Relay(callbacks.Privmsg): def _formatPrivmsg(self, nick, abbreviation, msg): # colorize nicks - colorNumber = (hash(nick) % 14) + 2 + nick = ircutils.canonicalColor(nick) if ircmsgs.isAction(msg): - return '* %s@%s %s' % \ - (ircutils.mircColor(nick, colorNumber), abbreviation, - ircmsgs.unAction(msg)) + return '* %s@%s %s' % (nick, abbreviation, ircmsgs.unAction(msg)) else: - return '<%s@%s> %s' % \ - (ircutils.mircColor(nick, colorNumber), - abbreviation, msg.args[1]) + return '<%s@%s> %s' % (nick, abbreviation, msg.args[1]) def doPrivmsg(self, irc, msg): callbacks.Privmsg.doPrivmsg(self, irc, msg)