XEP-0045: Register the missing invite/decline element
This commit is contained in:
parent
380f0e4e38
commit
4da1c8573e
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue