mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
irclib: Tag AWAY messages with channel names.
This commit is contained in:
parent
d2fe7d901f
commit
fee97c0308
@ -675,6 +675,13 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
|
||||
else:
|
||||
assert False, msg.args[0]
|
||||
|
||||
def doAway(self, irc, msg):
|
||||
channel_names = ircutils.IrcSet()
|
||||
for (name, channel) in self.channels.items():
|
||||
if msg.nick in channel.users:
|
||||
channel_names.add(name)
|
||||
msg.tag('channels', channel_names)
|
||||
|
||||
|
||||
###
|
||||
# The basic class for handling a connection to an IRC server. Accepts
|
||||
|
Loading…
Reference in New Issue
Block a user