mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Stopped coloring networks, it sucked.
This commit is contained in:
parent
1d9f7f331c
commit
a5baf0eb41
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user