Coverage for slidge/slixfix/xep_0424/stanza.py: 100%
17 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
1# Slixmpp: The Slick XMPP Library
2# Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net>
3# This file is part of Slixmpp.
4# See the file LICENSE for copying permissio
5from slixmpp.plugins.xep_0359 import OriginID
6from slixmpp.stanza import Message
7from slixmpp.xmlstream import ElementBase, register_stanza_plugin
9NS = "urn:xmpp:message-retract:1"
12class Retract(ElementBase):
13 namespace = NS
14 name = "retract"
15 plugin_attrib = "retract"
18class Retracted(ElementBase):
19 namespace = NS
20 name = "retracted"
21 plugin_attrib = "retracted"
22 interfaces = {"stamp"}
25def register_plugins():
26 register_stanza_plugin(Message, Retract)
27 register_stanza_plugin(Message, Retracted)
28 register_stanza_plugin(Retracted, OriginID)