Add a way to halt CAP before it hits CAP END
This commit is contained in:
parent
88cb327d02
commit
2e43c9f3cf
1 changed files with 4 additions and 3 deletions
|
@ -292,12 +292,13 @@ class Module(ModuleManager.BaseModule):
|
||||||
elif subcommand == "ack":
|
elif subcommand == "ack":
|
||||||
event["server"].capabilities.update(capabilities)
|
event["server"].capabilities.update(capabilities)
|
||||||
if not is_multiline:
|
if not is_multiline:
|
||||||
self.events.on("received.cap.ack").call(
|
results = self.events.on("received.cap.ack").call(
|
||||||
capabilities=event["server"].capabilities,
|
capabilities=event["server"].capabilities,
|
||||||
server=event["server"])
|
server=event["server"])
|
||||||
|
|
||||||
if not event["server"].waiting_for_capabilities():
|
if not False in results:
|
||||||
event["server"].send_capability_end()
|
if not event["server"].waiting_for_capabilities():
|
||||||
|
event["server"].send_capability_end()
|
||||||
elif subcommand == "nack":
|
elif subcommand == "nack":
|
||||||
event["server"].send_capability_end()
|
event["server"].send_capability_end()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue