diff src/plugins/plugin_exp_parrot.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 84a6e83157c2
children 0c84fb112d70
line wrap: on
line diff
--- a/src/plugins/plugin_exp_parrot.py	Thu Oct 31 17:14:15 2013 +0100
+++ b/src/plugins/plugin_exp_parrot.py	Thu Oct 31 17:18:04 2013 +0100
@@ -60,7 +60,7 @@
     #        debug("Parrot link detected, skipping other triggers")
     #        raise SkipOtherTriggers
 
-    def MessageReceivedTrigger(self, message, profile):
+    def MessageReceivedTrigger(self, message, post_treat, profile):
         """ Check if source is linked and repeat message, else do nothing  """
         client = self.host.getClient(profile)
         from_jid = jid.JID(message["from"])