From 4da1c8573eb554900e4f42416d7ace2b912c56be Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 4 Dec 2020 00:22:22 +0100 Subject: [PATCH] XEP-0045: Register the missing invite/decline element --- slixmpp/plugins/xep_0045/muc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slixmpp/plugins/xep_0045/muc.py b/slixmpp/plugins/xep_0045/muc.py index 630112f3..82c07edd 100644 --- a/slixmpp/plugins/xep_0045/muc.py +++ b/slixmpp/plugins/xep_0045/muc.py @@ -31,6 +31,8 @@ from slixmpp.exceptions import IqError, IqTimeout from slixmpp.plugins.xep_0045 import stanza from slixmpp.plugins.xep_0045.stanza import ( + MUCInvite, + MUCDecline, MUCPresence, MUCJoin, MUCMessage, @@ -64,6 +66,8 @@ class XEP_0045(BasePlugin): self.rooms = {} self.our_nicks = {} # load MUC support in presence stanzas + register_stanza_plugin(MUCMessage, MUCInvite) + register_stanza_plugin(MUCMessage, MUCDecline) register_stanza_plugin(MUCMessage, MUCStatus) register_stanza_plugin(MUCPresence, MUCStatus) register_stanza_plugin(Presence, MUCPresence)