From 66ce2ee2b7209a1bce15a964a40d5ff9c6a2af9f Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 19 May 2019 11:10:32 +0100 Subject: [PATCH] .copy() all the hardcoded Capabilities in line_handler/ircv3.py --- modules/line_handler/ircv3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/line_handler/ircv3.py b/modules/line_handler/ircv3.py index 68280307..64281c74 100644 --- a/modules/line_handler/ircv3.py +++ b/modules/line_handler/ircv3.py @@ -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,