comparison 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
comparison
equal deleted inserted replaced
925:5c78cefd233f 926:d609581bf74a
34 GENERAL = "general" 34 GENERAL = "general"
35 SAVEFILE_DATABASE = "sat.db" 35 SAVEFILE_DATABASE = "sat.db"
36 PROF_KEY_NONE = '@NONE@' 36 PROF_KEY_NONE = '@NONE@'
37 PROF_KEY_DEFAULT = '@DEFAULT@' 37 PROF_KEY_DEFAULT = '@DEFAULT@'
38 IQ_SET = '/iq[@type="set"]' 38 IQ_SET = '/iq[@type="set"]'
39
40 # names of widely used plugins
41 TEXT_CMDS = 'TEXT-COMMANDS'