From 697ce2ba309b1ad50c08c620aae2ee2f81623814 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 8 Feb 2019 23:12:14 +0000 Subject: [PATCH] Do a SASL reauthentication when we get `CAP NEW` for SASL (sasl) --- modules/sasl/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index c66567a8..b746f443 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -37,6 +37,7 @@ class Module(ModuleManager.BaseModule): event["server"].queue_capability("sasl") @utils.hook("received.cap.ack") + @utils.hook("received.cap.new") def on_cap_ack(self, event): if "sasl" in event["capabilities"]: sasl = event["server"].get_setting("sasl")