diff src/plugins/plugin_xep_0334.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 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0334.py	Sun Feb 12 17:55:43 2017 +0100
+++ b/src/plugins/plugin_xep_0334.py	Sun Feb 12 18:59:10 2017 +0100
@@ -35,14 +35,14 @@
 
 
 PLUGIN_INFO = {
-    "name": u"Message Processing Hints",
-    "import_name": u"XEP-0334",
-    "type": u"XEP",
-    "protocols": [u"XEP-0334"],
-    "main": "XEP_0334",
-    "handler": u"yes",
-    "description": D_(u"""Implementation of Message Processing Hints"""),
-    "usage": dedent(D_(u"""\
+    C.PI_NAME: u"Message Processing Hints",
+    C.PI_IMPORT_NAME: u"XEP-0334",
+    C.PI_TYPE: u"XEP",
+    C.PI_PROTOCOLS: [u"XEP-0334"],
+    C.PI_MAIN: "XEP_0334",
+    C.PI_HANDLER: u"yes",
+    C.PI_DESCRIPTION: D_(u"""Implementation of Message Processing Hints"""),
+    C.PI_USAGE: dedent(D_(u"""\
              Frontends can use HINT_* constants in mess_data['extra'] in a serialized 'hints' dict.
              Internal plugins can use directly addHint([HINT_* constant]).
              Will set mess_data['extra']['history'] to 'skipped' when no store is requested and message is not saved in history."""))