Stopped coloring networks, it sucked.

This commit is contained in:
Jeremy Fincher 2003-08-15 05:41:51 +00:00
parent 1d9f7f331c
commit a5baf0eb41

View File

@ -290,17 +290,17 @@ class Relay(callbacks.Privmsg):
(nick, hostmask, signon, idle, channels) (nick, hostmask, signon, idle, channels)
replyIrc.reply(replyMsg, s) replyIrc.reply(replyMsg, s)
def _formatPrivmsg(self, nick, abbreviation, msg): def _formatPrivmsg(self, nick, network, msg):
# colorize nicks # colorize nicks
nick = ircutils.mircColor(nick, *ircutils.canonicalColor(nick)) nick = ircutils.mircColor(nick, *ircutils.canonicalColor(nick))
colors = ircutils.canonicalColor(nick, shift=4) colors = ircutils.canonicalColor(nick, shift=4)
if ircmsgs.isAction(msg): if ircmsgs.isAction(msg):
t = ircutils.mircColor('*', *colors) t = ircutils.mircColor('*', *colors)
s = '%s %s@%s %s' % (t, nick, abbreviation, ircmsgs.unAction(msg)) s = '%s %s@%s %s' % (t, nick, network, ircmsgs.unAction(msg))
else: else:
lt = ircutils.mircColor('<', *colors) lt = ircutils.mircColor('<', *colors)
gt = ircutils.mircColor('%s>' % abbreviation, *colors) gt = ircutils.mircColor('>', *colors)
s = '%s%s@%s %s' % (lt, nick, gt, msg.args[1]) s = '%s%s@%s%s %s' % (lt, nick, network, gt, msg.args[1])
return s return s
def doPrivmsg(self, irc, msg): def doPrivmsg(self, irc, msg):