From 409118f2556172c2edddae3feef91b59c6b77872 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 28 Feb 2019 18:57:04 +0100 Subject: [PATCH] plugin XEP-0045: fixed issue with deepcopy by using new xml_tools.elementCopy method --- sat/plugins/plugin_xep_0045.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sat/plugins/plugin_xep_0045.py b/sat/plugins/plugin_xep_0045.py index 74ef948d..9a0c45df 100755 --- a/sat/plugins/plugin_xep_0045.py +++ b/sat/plugins/plugin_xep_0045.py @@ -30,7 +30,6 @@ from sat.memory import memory import time import uuid -import copy from wokkel import muc, disco, iwokkel from sat.tools import xml_tools @@ -761,7 +760,7 @@ class XEP_0045(object): # XXX: shouldn't it be done by the server ?!! muc_client = client._muc_client for room_jid, room in muc_client.joined_rooms.iteritems(): - elt = copy.deepcopy(presence_elt) + elt = xml_tools.elementCopy(presence_elt) elt['to'] = room_jid.userhost() + '/' + room.nick client.presence.send(elt) return True