From 623d2cc27e5a130c3b2a029c819c1a6eb6e0bf3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 19 Dec 2021 00:51:42 +0100 Subject: xep_0045: register_stanza_plugin(MUCPresence, MUCDestroy) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/plugins/xep_0045/stanza.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'slixmpp/plugins/xep_0045/stanza.py') diff --git a/slixmpp/plugins/xep_0045/stanza.py b/slixmpp/plugins/xep_0045/stanza.py index 428dbce7..6c3d2244 100644 --- a/slixmpp/plugins/xep_0045/stanza.py +++ b/slixmpp/plugins/xep_0045/stanza.py @@ -235,6 +235,7 @@ class MUCOwnerQuery(ElementBase): class MUCOwnerDestroy(ElementBase): name = 'destroy' plugin_attrib = 'destroy' + namespace = NS_OWNER interfaces = {'reason', 'jid'} sub_interfaces = {'reason'} @@ -288,3 +289,11 @@ class MUCActor(ElementBase): if jid: return JID(jid) return jid + + +class MUCDestroy(ElementBase): + name = 'destroy' + plugin_attrib = 'destroy' + namespace = NS_USER + interfaces = {'reason', 'jid'} + sub_interfaces = {'reason'} -- cgit v1.2.3