From 81ebf4e8ba7d273cfd51df9c64fc5153cc687989 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 22 Jan 2021 18:40:37 +0100 Subject: XEP-0382: Spoiler Messages --- slixmpp/plugins/xep_0382/stanza.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 slixmpp/plugins/xep_0382/stanza.py (limited to 'slixmpp/plugins/xep_0382/stanza.py') diff --git a/slixmpp/plugins/xep_0382/stanza.py b/slixmpp/plugins/xep_0382/stanza.py new file mode 100644 index 00000000..0ce2b5f4 --- /dev/null +++ b/slixmpp/plugins/xep_0382/stanza.py @@ -0,0 +1,26 @@ +""" + Slixmpp: The Slick XMPP Library + Copyright (C) 2021 Mathieu Pasquet + This file is part of Slixmpp. + + See the file LICENSE for copying permissio +""" + +from slixmpp.stanza import Message +from slixmpp.xmlstream import ( + register_stanza_plugin, + ElementBase, +) + + +NS = 'urn:xmpp:spoiler:0' + + +class Spoiler(ElementBase): + namespace = NS + name = 'spoiler' + plugin_attrib = 'spoiler' + + +def register_plugins(): + register_stanza_plugin(Message, Spoiler) -- cgit v1.2.3