diff options
author | mathieui <mathieui@mathieui.net> | 2020-12-02 19:54:14 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-12-04 19:14:32 +0100 |
commit | 54d556280ae5003eb56eeb419dfcb0b906506938 (patch) | |
tree | 81b3366cfda9f35b4fa37e2ef47abfda9f7120de /slixmpp/plugins/xep_0428/stanza.py | |
parent | c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21 (diff) | |
download | slixmpp-54d556280ae5003eb56eeb419dfcb0b906506938.tar.gz slixmpp-54d556280ae5003eb56eeb419dfcb0b906506938.tar.bz2 slixmpp-54d556280ae5003eb56eeb419dfcb0b906506938.tar.xz slixmpp-54d556280ae5003eb56eeb419dfcb0b906506938.zip |
XEP-0428: Fallback Indication
Diffstat (limited to 'slixmpp/plugins/xep_0428/stanza.py')
-rw-r--r-- | slixmpp/plugins/xep_0428/stanza.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0428/stanza.py b/slixmpp/plugins/xep_0428/stanza.py new file mode 100644 index 00000000..41df80d0 --- /dev/null +++ b/slixmpp/plugins/xep_0428/stanza.py @@ -0,0 +1,26 @@ +""" + 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.stanza import Message +from slixmpp.xmlstream import ( + ElementBase, + register_stanza_plugin, +) + + +NS = 'urn:xmpp:fallback:0' + + +class Fallback(ElementBase): + namespace = NS + name = 'fallback' + plugin_attrib = 'fallback' + + +def register_plugins(): + register_stanza_plugin(Message, Fallback) |