comparison sat/plugins/plugin_xep_0191.py @ 3811:24fbc4cad534

plugin XEP-0191: fix wrong name and description
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 18:25:55 +0200
parents f8a0f3b65371
children 524856bd7b19
comparison
equal deleted inserted replaced
3810:29380ef68dbe 3811:24fbc4cad534
31 from sat.tools.utils import ensure_deferred 31 from sat.tools.utils import ensure_deferred
32 32
33 log = getLogger(__name__) 33 log = getLogger(__name__)
34 34
35 PLUGIN_INFO = { 35 PLUGIN_INFO = {
36 C.PI_NAME: "Pubsub Public Subscriptions", 36 C.PI_NAME: "Blokcing Commands",
37 C.PI_IMPORT_NAME: "XEP-0191", 37 C.PI_IMPORT_NAME: "XEP-0191",
38 C.PI_TYPE: C.PLUG_TYPE_XEP, 38 C.PI_TYPE: C.PLUG_TYPE_XEP,
39 C.PI_MODES: C.PLUG_MODE_BOTH, 39 C.PI_MODES: C.PLUG_MODE_BOTH,
40 C.PI_PROTOCOLS: ["XEP-0191"], 40 C.PI_PROTOCOLS: ["XEP-0191"],
41 C.PI_DEPENDENCIES: ["XEP-0060", "XEP-0376"], 41 C.PI_DEPENDENCIES: ["XEP-0060", "XEP-0376"],
42 C.PI_MAIN: "XEP_0191", 42 C.PI_MAIN: "XEP_0191",
43 C.PI_HANDLER: "yes", 43 C.PI_HANDLER: "yes",
44 C.PI_DESCRIPTION: _("""Pubsub Public Subscriptions implementation"""), 44 C.PI_DESCRIPTION: _("""Implement the protocol to block users or whole domains"""),
45 } 45 }
46 46
47 NS_BLOCKING = "urn:xmpp:blocking" 47 NS_BLOCKING = "urn:xmpp:blocking"
48 IQ_BLOCK_PUSH = f'{C.IQ_SET}/block[@xmlns="{NS_BLOCKING}"]' 48 IQ_BLOCK_PUSH = f'{C.IQ_SET}/block[@xmlns="{NS_BLOCKING}"]'
49 IQ_UNBLOCK_PUSH = f'{C.IQ_SET}/unblock[@xmlns="{NS_BLOCKING}"]' 49 IQ_UNBLOCK_PUSH = f'{C.IQ_SET}/unblock[@xmlns="{NS_BLOCKING}"]'