Abandon capability request if an empty ACK (a spec violation but okay) is received
This commit is contained in:
parent
e63438e2bb
commit
1f09d69a75
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue