slixmpp.plugins.xep_0405.stanza

1.6 Documentation

Contents

Source code for slixmpp.plugins.xep_0405.stanza

"""
    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 slixmpp import JID
from slixmpp.stanza import Iq
from slixmpp.xmlstream import (
    ElementBase,
    register_stanza_plugin,
)

from slixmpp.plugins.xep_0369.stanza import (
    Join,
    Leave,
)

NS = 'urn:xmpp:mix:pam:2'


[docs]class ClientJoin(ElementBase): namespace = NS name = 'client-join' plugin_attrib = 'client_join' interfaces = {'channel'}
[docs]class ClientLeave(ElementBase): namespace = NS name = 'client-leave' plugin_attrib = 'client_leave' interfaces = {'channel'}
[docs]def register_plugins(): register_stanza_plugin(Iq, ClientJoin) register_stanza_plugin(ClientJoin, Join) register_stanza_plugin(Iq, ClientLeave) register_stanza_plugin(ClientLeave, Leave)

Contents