# HG changeset patch # User Goffi # Date 1361488772 -3600 # Node ID 1d6f48ae31d15fc056ca8b1b4e57b6eb10e9c3db # Parent 6fd1095b2b7b23527f3babe86ba5d63c0424cc65 plugin parrot: sendMessage now avoid triggers diff -r 6fd1095b2b7b -r 1d6f48ae31d1 src/plugins/plugin_exp_parrot.py --- 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")