aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-09 02:58:25 +0000
committerGravatar jesopo2019-02-09 02:58:25 +0000
commit6018cc098d7784728b8fd786e918b26bacf4d8f5 (patch)
treee2d271942ee3d108aeb4ea295fe0f4aded649e10 /modules
parentDo a SASL reauthentication when we get `CAP NEW` for SASL (sasl) (diff)
signature
We still need to 'CAP REQ :sasl' when we get 'CAP NEW :sasl' (sasl)
Diffstat (limited to 'modules')
-rw-r--r--modules/sasl/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py
index b746f443..a4076729 100644
--- a/modules/sasl/__init__.py
+++ b/modules/sasl/__init__.py
@@ -19,6 +19,7 @@ def _scram_xor(s1, s2):
"help": "Set the sasl username/password for this server",
"validate": _validate})
class Module(ModuleManager.BaseModule):
+ @utils.hook("received.cap.new")
@utils.hook("received.cap.ls")
def on_cap(self, event):
has_sasl = "sasl" in event["capabilities"]
@@ -37,7 +38,6 @@ 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")