Still REQ CAPs caught from cap.ls command if line_handler.py doesn't request any
This commit is contained in:
parent
518f32c4ec
commit
91f78e834e
1 changed files with 8 additions and 9 deletions
|
@ -296,17 +296,16 @@ class Module(ModuleManager.BaseModule):
|
|||
matched_caps = self._match_caps(
|
||||
list(event["server"].server_capabilities.keys()))
|
||||
|
||||
if matched_caps:
|
||||
event["server"].queue_capabilities(matched_caps)
|
||||
event["server"].queue_capabilities(matched_caps)
|
||||
|
||||
self._event(event, "cap.ls",
|
||||
capabilities=event["server"].server_capabilities,
|
||||
server=event["server"])
|
||||
self._event(event, "cap.ls",
|
||||
capabilities=event["server"].server_capabilities,
|
||||
server=event["server"])
|
||||
|
||||
if event["server"].has_capability_queue():
|
||||
event["server"].send_capability_queue()
|
||||
else:
|
||||
event["server"].send_capability_end()
|
||||
if event["server"].has_capability_queue():
|
||||
event["server"].send_capability_queue()
|
||||
else:
|
||||
event["server"].send_capability_end()
|
||||
elif subcommand == "new":
|
||||
event["server"].capabilities.update(set(capabilities.keys()))
|
||||
|
||||
|
|
Loading…
Reference in a new issue