matched_caps is actually a str[]

This commit is contained in:
jesopo 2019-05-19 11:13:16 +01:00
parent 66ce2ee2b7
commit c60094ea92

View file

@ -44,7 +44,6 @@ def cap(events, event):
if not is_multiline: if not is_multiline:
server_caps = list(event["server"].server_capabilities.keys()) server_caps = list(event["server"].server_capabilities.keys())
matched_caps = _match_caps(CAPABILITIES, server_caps) matched_caps = _match_caps(CAPABILITIES, server_caps)
matched_caps = list(map(lambda cap: cap.copy(), matched_caps))
module_caps = events.on("received.cap.ls").call( module_caps = events.on("received.cap.ls").call(
capabilities=event["server"].server_capabilities, capabilities=event["server"].server_capabilities,