diff src/plugins/plugin_exp_command_export.py @ 663:8004c7d4aba7

core: Deferred in onMessage. onMessage now use a deferred which is passed to MessageReceived trigger through the post_treat parameter. This can be used by plugins to add deferred in the callback chain.
author Goffi <goffi@goffi.org>
date Thu, 31 Oct 2013 17:18:04 +0100
parents 7ea6d5a86e58
children bfabeedbf32e
line wrap: on
line diff
--- a/src/plugins/plugin_exp_command_export.py	Thu Oct 31 17:14:15 2013 +0100
+++ b/src/plugins/plugin_exp_command_export.py	Thu Oct 31 17:18:04 2013 +0100
@@ -100,7 +100,7 @@
         except ValueError:
             pass
 
-    def MessageReceivedTrigger(self, message, profile):
+    def MessageReceivedTrigger(self, message, post_treat, profile):
         """ Check if source is linked and repeat message, else do nothing  """
         from_jid = jid.JID(message["from"])
         spawned_key = (from_jid.userhostJID(), profile)