Actually check that we don't have CAPs that we're waiting on a ACK/NAK for

before ending CAP negotiation (line_handler.py)
This commit is contained in:
jesopo 2019-02-05 22:26:57 +00:00
parent cbbe6f1569
commit 5d51a283bb

View file

@ -320,7 +320,9 @@ class Module(ModuleManager.BaseModule):
if subcommand == "ack" or subcommand == "nak":
for capability in capabilities:
event["server"].requested_capabilities.remove(capability)
if (event["server"].cap_started and
not event["server"].requested_capabilities and
not event["server"].waiting_for_capabilities()):
event["server"].cap_started = False
event["server"].send_capability_end()