mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Add do352 back for IRCds which do not support WHOX
This commit is contained in:
parent
dd5556ea99
commit
ddbfad5086
@ -481,16 +481,23 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
else:
|
else:
|
||||||
self.supported[arg] = None
|
self.supported[arg] = None
|
||||||
|
|
||||||
def do354(self, irc, msg):
|
def do352(self, irc, msg):
|
||||||
# WHO reply.
|
# WHO reply.
|
||||||
|
|
||||||
(_, user, host, nick, __) = msg.args
|
(nick, user, host) = (msg.args[5], msg.args[2], msg.args[3])
|
||||||
|
hostmask = '%s!%s@%s' % (nick, user, host)
|
||||||
|
self.nicksToHostmasks[nick] = hostmask
|
||||||
|
|
||||||
|
def do354(self, irc, msg):
|
||||||
|
# WHOX reply.
|
||||||
|
|
||||||
|
(__, user, host, nick, ___) = msg.args
|
||||||
hostmask = '%s!%s@%s' % (nick, user, host)
|
hostmask = '%s!%s@%s' % (nick, user, host)
|
||||||
self.nicksToHostmasks[nick] = hostmask
|
self.nicksToHostmasks[nick] = hostmask
|
||||||
|
|
||||||
def do353(self, irc, msg):
|
def do353(self, irc, msg):
|
||||||
# NAMES reply.
|
# NAMES reply.
|
||||||
(_, type, channel, names) = msg.args
|
(__, type, channel, names) = msg.args
|
||||||
if channel not in self.channels:
|
if channel not in self.channels:
|
||||||
self.channels[channel] = ChannelState()
|
self.channels[channel] = ChannelState()
|
||||||
c = self.channels[channel]
|
c = self.channels[channel]
|
||||||
|
Loading…
Reference in New Issue
Block a user