XEP-0045: Register the missing invite/decline element
This commit is contained in:
parent
380f0e4e38
commit
4da1c8573e
@ -31,6 +31,8 @@ from slixmpp.exceptions import IqError, IqTimeout
|
|||||||
|
|
||||||
from slixmpp.plugins.xep_0045 import stanza
|
from slixmpp.plugins.xep_0045 import stanza
|
||||||
from slixmpp.plugins.xep_0045.stanza import (
|
from slixmpp.plugins.xep_0045.stanza import (
|
||||||
|
MUCInvite,
|
||||||
|
MUCDecline,
|
||||||
MUCPresence,
|
MUCPresence,
|
||||||
MUCJoin,
|
MUCJoin,
|
||||||
MUCMessage,
|
MUCMessage,
|
||||||
@ -64,6 +66,8 @@ class XEP_0045(BasePlugin):
|
|||||||
self.rooms = {}
|
self.rooms = {}
|
||||||
self.our_nicks = {}
|
self.our_nicks = {}
|
||||||
# load MUC support in presence stanzas
|
# load MUC support in presence stanzas
|
||||||
|
register_stanza_plugin(MUCMessage, MUCInvite)
|
||||||
|
register_stanza_plugin(MUCMessage, MUCDecline)
|
||||||
register_stanza_plugin(MUCMessage, MUCStatus)
|
register_stanza_plugin(MUCMessage, MUCStatus)
|
||||||
register_stanza_plugin(MUCPresence, MUCStatus)
|
register_stanza_plugin(MUCPresence, MUCStatus)
|
||||||
register_stanza_plugin(Presence, MUCPresence)
|
register_stanza_plugin(Presence, MUCPresence)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user