summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-12-04 00:22:22 +0100
committermathieui <mathieui@mathieui.net>2020-12-04 00:22:22 +0100
commit4da1c8573eb554900e4f42416d7ace2b912c56be (patch)
tree821b0e7261b564c2e5d9afc362457ba76f7d2ca1
parent380f0e4e38d5e1be988f60aea76e1172c03e2c56 (diff)
downloadslixmpp-4da1c8573eb554900e4f42416d7ace2b912c56be.tar.gz
slixmpp-4da1c8573eb554900e4f42416d7ace2b912c56be.tar.bz2
slixmpp-4da1c8573eb554900e4f42416d7ace2b912c56be.tar.xz
slixmpp-4da1c8573eb554900e4f42416d7ace2b912c56be.zip
XEP-0045: Register the missing invite/decline element
-rw-r--r--slixmpp/plugins/xep_0045/muc.py4
1 files changed, 4 insertions, 0 deletions
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)