diff src/plugins/plugin_misc_text_commands.py @ 922:c897c8d321b3

core: sendMessageTrigger now manage pre and post treatments, which happen before or after XML generation
author Goffi <goffi@goffi.org>
date Sat, 22 Mar 2014 15:34:05 +0100
parents 8dd168c7741c
children d609581bf74a
line wrap: on
line diff
--- a/src/plugins/plugin_misc_text_commands.py	Sat Mar 22 13:47:33 2014 +0100
+++ b/src/plugins/plugin_misc_text_commands.py	Sat Mar 22 15:34:05 2014 +0100
@@ -46,9 +46,9 @@
         self.host = host
         host.trigger.add("sendMessage", self.sendMessageTrigger)
 
-    def sendMessageTrigger(self, mess_data, treatments, profile):
+    def sendMessageTrigger(self, mess_data, pre_xml_treatments, post_xml_treatments, profile):
         """ Install SendMessage command hook """
-        treatments.addCallback(self._sendMessageCmdHook, profile)
+        pre_xml_treatments.addCallback(self._sendMessageCmdHook, profile)
         return True
 
     def _sendMessageCmdHook(self, mess_data, profile):