mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Use IRCv3.2 extension userhost-in-names if available.
This commit is contained in:
parent
9dd2811950
commit
9c8f05bc16
@ -509,11 +509,16 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
|
|||||||
|
|
||||||
def do353(self, irc, msg):
|
def do353(self, irc, msg):
|
||||||
# NAMES reply.
|
# NAMES reply.
|
||||||
(__, type, channel, names) = msg.args
|
(__, type, channel, items) = 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]
|
||||||
for name in names.split():
|
for item in items.split():
|
||||||
|
if ircutils.isUserHostmask(item):
|
||||||
|
name = ircutils.nickFromHostmask()
|
||||||
|
self.nicksToHostmasks[name] = name
|
||||||
|
else:
|
||||||
|
name = item
|
||||||
c.addUser(name)
|
c.addUser(name)
|
||||||
if type == '@':
|
if type == '@':
|
||||||
c.modes['s'] = None
|
c.modes['s'] = None
|
||||||
@ -949,7 +954,8 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
|||||||
|
|
||||||
|
|
||||||
REQUEST_CAPABILITIES = set(['account-notify', 'extended-join',
|
REQUEST_CAPABILITIES = set(['account-notify', 'extended-join',
|
||||||
'multi-prefix', 'metadata-notify', 'account-tag'])
|
'multi-prefix', 'metadata-notify', 'account-tag',
|
||||||
|
'userhost-in-names'])
|
||||||
|
|
||||||
def _queueConnectMessages(self):
|
def _queueConnectMessages(self):
|
||||||
if self.zombie:
|
if self.zombie:
|
||||||
|
Loading…
Reference in New Issue
Block a user