diff options
author | mathieui <mathieui@mathieui.net> | 2020-12-02 19:36:20 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-12-04 19:13:55 +0100 |
commit | 58c3579f74e2827c0be973cac9b0a0ae9a606a1e (patch) | |
tree | f7b665ca9293459168d66ea8e4d2373b06fb38d5 /slixmpp/plugins/xep_0422/fastening.py | |
parent | e592a46c99888594bfb0bf71da99c88755912a37 (diff) | |
download | slixmpp-58c3579f74e2827c0be973cac9b0a0ae9a606a1e.tar.gz slixmpp-58c3579f74e2827c0be973cac9b0a0ae9a606a1e.tar.bz2 slixmpp-58c3579f74e2827c0be973cac9b0a0ae9a606a1e.tar.xz slixmpp-58c3579f74e2827c0be973cac9b0a0ae9a606a1e.zip |
XEP-0422: Message Fastening
Diffstat (limited to 'slixmpp/plugins/xep_0422/fastening.py')
-rw-r--r-- | slixmpp/plugins/xep_0422/fastening.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0422/fastening.py b/slixmpp/plugins/xep_0422/fastening.py new file mode 100644 index 00000000..68560e16 --- /dev/null +++ b/slixmpp/plugins/xep_0422/fastening.py @@ -0,0 +1,28 @@ +""" + 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_0422 import stanza + + +class XEP_0422(BasePlugin): + '''XEP-0422: Message Fastening''' + + name = 'xep_0422' + description = 'Message Fastening' + dependencies = {'xep_0030'} + stanza = stanza + namespace = stanza.NS + + def plugin_init(self) -> None: + stanza.register_plugins() + + def session_bind(self, jid): + self.xmpp.plugin['xep_0030'].add_feature(feature=stanza.NS) + + def plugin_end(self): + self.xmpp.plugin['xep_0030'].del_feature(feature=stanza.NS) |