mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 13:12:35 +01:00
NickAuth: Detect extended-join based on capability.
It's more reliable than just checking the number of arguments (eg. if a network decides to add its own set of arguments in a way incompatible with extended-join).
This commit is contained in:
parent
dd865583e7
commit
99cb656df0
@ -188,8 +188,7 @@ class NickAuth(callbacks.Plugin):
|
|||||||
self._auth(irc, msg.prefix, account)
|
self._auth(irc, msg.prefix, account)
|
||||||
|
|
||||||
def doJoin(self, irc, msg):
|
def doJoin(self, irc, msg):
|
||||||
if len(msg.args) < 2:
|
if 'extended-join' not in irc.state.capabilities_ack:
|
||||||
# extended-join is not supported
|
|
||||||
return
|
return
|
||||||
|
|
||||||
account = msg.args[1]
|
account = msg.args[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user