'and' -> 'in'. typo

This commit is contained in:
jesopo 2019-08-03 11:10:19 +01:00
parent bc0af579d0
commit 2db2937038

View file

@ -79,7 +79,7 @@ def cap(exports, events, event):
if subcommand == "DEL":
for capability in capabilities.keys():
event["server"].agreed_capabilities.discard(capability)
if capability and event["server"].server_capabilities:
if capability in event["server"].server_capabilities:
del event["server"].server_capabilities[capability]
events.on("received.cap.del").call(server=event["server"],