summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0382/stanza.py
blob: 0ce2b5f4d5957cf337e4739591651d80448a3004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
    Slixmpp: The Slick XMPP Library
    Copyright (C) 2021 Mathieu Pasquet <mathieui@mathieui.net>
    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)