summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0359/stanzaid.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-12-02 19:47:46 +0100
committermathieui <mathieui@mathieui.net>2020-12-04 19:14:30 +0100
commitc63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21 (patch)
treefc6fe876ef5ba588b901a5997350010877525301 /slixmpp/plugins/xep_0359/stanzaid.py
parent58c3579f74e2827c0be973cac9b0a0ae9a606a1e (diff)
downloadslixmpp-c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21.tar.gz
slixmpp-c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21.tar.bz2
slixmpp-c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21.tar.xz
slixmpp-c63e9a32b9481ccd52f5ccf3dcdd3a61f0109f21.zip
XEP-0359: Unique and Stable Stanza IDs
(was partially supported in places before)
Diffstat (limited to 'slixmpp/plugins/xep_0359/stanzaid.py')
-rw-r--r--slixmpp/plugins/xep_0359/stanzaid.py22
1 files changed, 22 insertions, 0 deletions
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 <mathieui@mathieui.net>
+ 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()