Only offer sasl when we have sasl authentication to send

This commit is contained in:
jesopo 2018-09-03 12:38:51 +01:00
parent bbcc86dc24
commit 6e257c6e1b

View file

@ -14,7 +14,8 @@ class Module(object):
event["server"].send_capability_request("sasl")
def on_cap(self, event):
if "sasl" in event["capabilities"]:
if "sasl" in event["capabilities"] and event["server"].get_setting(
"sasl", None):
event["server"].queue_capability("sasl")
def on_cap_ack(self, event):
if "sasl" in event["capabilities"]: