handle 'CAP DEL' for something that wasn't advertised
This commit is contained in:
parent
a0efd7c0c7
commit
c99cbaf118
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ def cap(exports, events, event):
|
|||
if subcommand == "DEL":
|
||||
for capability in capabilities.keys():
|
||||
event["server"].agreed_capabilities.discard(capability)
|
||||
del event["server"].server_capabilities[capability]
|
||||
if capability and event["server"].server_capabilities:
|
||||
del event["server"].server_capabilities[capability]
|
||||
|
||||
events.on("received.cap.del").call(server=event["server"],
|
||||
capabilities=capabilities)
|
||||
|
|
Loading…
Reference in a new issue