blob: b803c7a562959c3ab99f47f0b2f967bad0e62ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Slixmpp: The Slick XMPP Library
# Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net>
# This file is part of Slixmpp.
# See the file LICENSE for copying permissio
from xml.etree import ElementTree as ET
from slixmpp import JID
from slixmpp.stanza import Presence
from slixmpp.xmlstream import (
register_stanza_plugin,
ElementBase,
)
from slixmpp.plugins.xep_0060.stanza import (
Item,
EventItem,
)
NS = 'urn:xmpp:mix:presence:0'
class MIXPresence(ElementBase):
namespace = NS
name = 'mix'
plugin_attrib = 'mix'
interfaces = {'jid', 'nick'}
sub_interfaces = {'jid', 'nick'}
def register_plugins():
register_stanza_plugin(Presence, MIXPresence)
register_stanza_plugin(Item, Presence)
register_stanza_plugin(EventItem, Presence)
|