XEP-0045: add more stanza elements

This commit is contained in:
mathieui 2020-11-22 17:09:58 +01:00
parent 985505297c
commit fe46643f2f

View file

@ -147,3 +147,52 @@ class MUCMessage(MUCBase):
</x>
</message>
'''
class MUCJoin(ElementBase):
name = 'x'
namespace = NS
plugin_attrib = 'muc_join'
interfaces = {'password'}
sub_interfaces = {'password'}
class MUCInvite(ElementBase):
name = 'invite'
plugin_attrib = 'invite'
namespace = NS_USER
interfaces = {'to', 'reason'}
sub_interfaces = {'reason'}
class MUCHistory(ElementBase):
name = 'history'
plugin_attrib = 'history'
namespace = NS
interfaces = {'maxchars', 'maxstanzas', 'since', 'seconds'}
class MUCOwnerQuery(ElementBase):
name = 'query'
plugin_attrib = 'mucowner_query'
namespace = NS_OWNER
class MUCOwnerDestroy(ElementBase):
name = 'destroy'
plugin_attrib = 'destroy'
interfaces = {'reason', 'jid'}
sub_interfaces = {'reason'}
class MUCAdminQuery(ElementBase):
name = 'query'
plugin_attrib = 'mucadmin_query'
namespace = NS_ADMIN
class MUCAdminItem(ElementBase):
namespace = NS_ADMIN
name = 'item'
plugin_attrib = 'item'
interfaces = {'role', 'affiliation', 'nick', 'jid'}