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,6 +79,7 @@ def cap(exports, events, event):
|
||||||
if subcommand == "DEL":
|
if subcommand == "DEL":
|
||||||
for capability in capabilities.keys():
|
for capability in capabilities.keys():
|
||||||
event["server"].agreed_capabilities.discard(capability)
|
event["server"].agreed_capabilities.discard(capability)
|
||||||
|
if capability and event["server"].server_capabilities:
|
||||||
del event["server"].server_capabilities[capability]
|
del event["server"].server_capabilities[capability]
|
||||||
|
|
||||||
events.on("received.cap.del").call(server=event["server"],
|
events.on("received.cap.del").call(server=event["server"],
|
||||||
|
|
Loading…
Reference in a new issue