comparison src/plugins/plugin_misc_text_commands.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 1d3f73e065e1
children 6a004a22dd9e
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
26 log = getLogger(__name__) 26 log = getLogger(__name__)
27 from twisted.python import failure 27 from twisted.python import failure
28 from collections import OrderedDict 28 from collections import OrderedDict
29 29
30 PLUGIN_INFO = { 30 PLUGIN_INFO = {
31 "name": "Text commands", 31 C.PI_NAME: "Text commands",
32 "import_name": C.TEXT_CMDS, 32 C.PI_IMPORT_NAME: C.TEXT_CMDS,
33 "type": "Misc", 33 C.PI_TYPE: "Misc",
34 "protocols": ["XEP-0245"], 34 C.PI_PROTOCOLS: ["XEP-0245"],
35 "dependencies": [], 35 C.PI_DEPENDENCIES: [],
36 "main": "TextCommands", 36 C.PI_MAIN: "TextCommands",
37 "handler": "no", 37 C.PI_HANDLER: "no",
38 "description": _("""IRC like text commands""") 38 C.PI_DESCRIPTION: _("""IRC like text commands""")
39 } 39 }
40 40
41 41
42 class InvalidCommandSyntax(Exception): 42 class InvalidCommandSyntax(Exception):
43 """Throwed while parsing @command in docstring if syntax is invalid""" 43 """Throwed while parsing @command in docstring if syntax is invalid"""