Abandon capability request if an empty ACK (a spec violation but okay) is received

This commit is contained in:
Evelyn 2017-11-01 14:25:52 +00:00
parent e63438e2bb
commit 1f09d69a75

View file

@ -35,7 +35,10 @@ class Module(object):
if event["subcommand"] == "NAK":
event["server"].send_capability_end()
elif event["subcommand"] == "ACK":
event["server"].send_authenticate("PLAIN")
if not "sasl" in event["capability_list"]:
event["server"].send_capability_end()
else:
event["server"].send_authenticate("PLAIN")
else:
pass