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,10 +292,11 @@ class Module(ModuleManager.BaseModule):
|
|||
elif subcommand == "ack":
|
||||
event["server"].capabilities.update(capabilities)
|
||||
if not is_multiline:
|
||||
self.events.on("received.cap.ack").call(
|
||||
results = self.events.on("received.cap.ack").call(
|
||||
capabilities=event["server"].capabilities,
|
||||
server=event["server"])
|
||||
|
||||
if not False in results:
|
||||
if not event["server"].waiting_for_capabilities():
|
||||
event["server"].send_capability_end()
|
||||
elif subcommand == "nack":
|
||||
|
|
Loading…
Reference in a new issue