changeset 603:1d6f48ae31d1

plugin parrot: sendMessage now avoid triggers
author Goffi <goffi@goffi.org>
date Fri, 22 Feb 2013 00:19:32 +0100
parents 6fd1095b2b7b
children 16a9affc49cf
files src/plugins/plugin_exp_parrot.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_exp_parrot.py	Fri Feb 22 00:15:50 2013 +0100
+++ b/src/plugins/plugin_exp_parrot.py	Fri Feb 22 00:19:32 2013 +0100
@@ -23,7 +23,7 @@
 from twisted.words.protocols.jabber import jid
 
 from sat.core.exceptions import UnknownEntityError
-from sat.tools.misc import SkipOtherTriggers
+#from sat.tools.misc import SkipOtherTriggers
 
 PLUGIN_INFO = {
     "name": "Parrot Plugin",
@@ -94,7 +94,7 @@
 
                 linked = _links[from_jid.userhostJID()]
 
-                self.host._sendMessage(unicode(linked), msg, None, "auto", profile_key=profile)
+                self.host.sendMessage(jid.JID(unicode(linked)), msg, None, "auto", no_trigger=True, profile_key=profile)
         else:
             warning("No body element found in message, following normal behaviour")