From c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 2 Dec 2020 19:47:46 +0100 Subject: XEP-0359: Unique and Stable Stanza IDs (was partially supported in places before) --- slixmpp/plugins/xep_0359/stanzaid.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 slixmpp/plugins/xep_0359/stanzaid.py (limited to 'slixmpp/plugins/xep_0359/stanzaid.py') diff --git a/slixmpp/plugins/xep_0359/stanzaid.py b/slixmpp/plugins/xep_0359/stanzaid.py new file mode 100644 index 00000000..2235e74b --- /dev/null +++ b/slixmpp/plugins/xep_0359/stanzaid.py @@ -0,0 +1,22 @@ +""" + Slixmpp: The Slick XMPP Library + Copyright (C) 2020 Mathieu Pasquet + This file is part of Slixmpp. + + See the file LICENSE for copying permission. +""" +from slixmpp.plugins import BasePlugin +from slixmpp.plugins.xep_0359 import stanza + + +class XEP_0359(BasePlugin): + '''XEP-0359: Unique and Stable Stanza IDs''' + + name = 'xep_0359' + description = 'Unique and Stable Stanza IDs' + dependencies = set() + stanza = stanza + namespace = stanza.NS + + def plugin_init(self) -> None: + stanza.register_plugins() -- cgit v1.2.3