Do a SASL reauthentication when we get CAP NEW for SASL (sasl)

This commit is contained in:
jesopo 2019-02-08 23:12:14 +00:00
parent 42e2596c9b
commit 697ce2ba30

View file

@ -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")