xep_0045: register_stanza_plugin(MUCPresence, MUCDestroy)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
6fb4617732
commit
623d2cc27e
2 changed files with 11 additions and 0 deletions
|
@ -35,6 +35,7 @@ from slixmpp.plugins.xep_0045 import stanza
|
||||||
from slixmpp.plugins.xep_0045.stanza import (
|
from slixmpp.plugins.xep_0045.stanza import (
|
||||||
MUCInvite,
|
MUCInvite,
|
||||||
MUCDecline,
|
MUCDecline,
|
||||||
|
MUCDestroy,
|
||||||
MUCPresence,
|
MUCPresence,
|
||||||
MUCJoin,
|
MUCJoin,
|
||||||
MUCMessage,
|
MUCMessage,
|
||||||
|
@ -88,6 +89,7 @@ class XEP_0045(BasePlugin):
|
||||||
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)
|
||||||
|
register_stanza_plugin(MUCPresence, MUCDestroy)
|
||||||
register_stanza_plugin(Presence, MUCJoin)
|
register_stanza_plugin(Presence, MUCJoin)
|
||||||
register_stanza_plugin(MUCJoin, MUCHistory)
|
register_stanza_plugin(MUCJoin, MUCHistory)
|
||||||
register_stanza_plugin(Message, MUCMessage)
|
register_stanza_plugin(Message, MUCMessage)
|
||||||
|
|
|
@ -235,6 +235,7 @@ class MUCOwnerQuery(ElementBase):
|
||||||
class MUCOwnerDestroy(ElementBase):
|
class MUCOwnerDestroy(ElementBase):
|
||||||
name = 'destroy'
|
name = 'destroy'
|
||||||
plugin_attrib = 'destroy'
|
plugin_attrib = 'destroy'
|
||||||
|
namespace = NS_OWNER
|
||||||
interfaces = {'reason', 'jid'}
|
interfaces = {'reason', 'jid'}
|
||||||
sub_interfaces = {'reason'}
|
sub_interfaces = {'reason'}
|
||||||
|
|
||||||
|
@ -288,3 +289,11 @@ class MUCActor(ElementBase):
|
||||||
if jid:
|
if jid:
|
||||||
return JID(jid)
|
return JID(jid)
|
||||||
return jid
|
return jid
|
||||||
|
|
||||||
|
|
||||||
|
class MUCDestroy(ElementBase):
|
||||||
|
name = 'destroy'
|
||||||
|
plugin_attrib = 'destroy'
|
||||||
|
namespace = NS_USER
|
||||||
|
interfaces = {'reason', 'jid'}
|
||||||
|
sub_interfaces = {'reason'}
|
||||||
|
|
Loading…
Reference in a new issue