From 99cb656df08bb987066beaebbff800528b94cc5c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 12 Jun 2020 19:11:15 +0200 Subject: [PATCH] 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). --- plugins/NickAuth/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/NickAuth/plugin.py b/plugins/NickAuth/plugin.py index 9c39fdf43..1ddcb11be 100644 --- a/plugins/NickAuth/plugin.py +++ b/plugins/NickAuth/plugin.py @@ -188,8 +188,7 @@ class NickAuth(callbacks.Plugin): self._auth(irc, msg.prefix, account) def doJoin(self, irc, msg): - if len(msg.args) < 2: - # extended-join is not supported + if 'extended-join' not in irc.state.capabilities_ack: return account = msg.args[1]