plugin parrot: sendMessage now avoid triggers

This commit is contained in:
Goffi 2013-02-22 00:19:32 +01:00
commit 7dc12d44be

View file

@ -23,7 +23,7 @@ from logging import debug, info, warning, error
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 @@ class Exp_Parrot(object):
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")