Only offer sasl when we have sasl authentication to send
This commit is contained in:
parent
bbcc86dc24
commit
6e257c6e1b
1 changed files with 2 additions and 1 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Reference in a new issue