.copy() all the hardcoded Capabilities in line_handler/ircv3.py

This commit is contained in:
jesopo 2019-05-19 11:10:32 +01:00
parent f386351b7b
commit 66ce2ee2b7

View file

@ -44,6 +44,7 @@ def cap(events, event):
if not is_multiline:
server_caps = list(event["server"].server_capabilities.keys())
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(
capabilities=event["server"].server_capabilities,