diff src/core/constants.py @ 926:d609581bf74a

plugin text commands: refactoring, text now only contain main commands, and other plugin can add commands themselve: - registerTextCommands can be called by a plugin in its __init__ method, it looks for methods starting with "cmd_" and register them as new commands - addWhoIsCb: add a callback to /whois command, the callback can complete whois informations - plugins parrot, XEP-0045 and XEP-0092 now manage their own commands
author Goffi <goffi@goffi.org>
date Mon, 24 Mar 2014 10:57:15 +0100
parents e77948faaef3
children cbf4122baae7
line wrap: on
line diff
--- a/src/core/constants.py	Sun Mar 23 10:02:50 2014 +0100
+++ b/src/core/constants.py	Mon Mar 24 10:57:15 2014 +0100
@@ -36,3 +36,6 @@
     PROF_KEY_NONE = '@NONE@'
     PROF_KEY_DEFAULT = '@DEFAULT@'
     IQ_SET = '/iq[@type="set"]'
+
+    # names of widely used plugins
+    TEXT_CMDS = 'TEXT-COMMANDS'