Mercurial > libervia-backend
diff src/plugins/plugin_misc_text_commands.py @ 697:0c84fb112d70
core: sendMessage triggers now use a treatments deferred;
- treaments deferred can be used by plugins to change XML elements before sending them, in a similar way as for newMessage
- sendMessageXml trigger became useless, so it as been removed in favor of the new deferred
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Nov 2013 13:57:36 +0100 |
parents | 84a6e83157c2 |
children | d731ae066158 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_text_commands.py Tue Nov 12 16:56:34 2013 +0100 +++ b/src/plugins/plugin_misc_text_commands.py Wed Nov 13 13:57:36 2013 +0100 @@ -42,7 +42,7 @@ self.host = host host.trigger.add("sendMessage", self.sendMessageTrigger) - def sendMessageTrigger(self, mess_data, profile): + def sendMessageTrigger(self, mess_data, treatments, profile): """ Check text commands in message, and react consequently """ msg = mess_data["message"] if msg: