plugin parrot: sendMessage now avoid triggers
This commit is contained in:
parent
d339e79b1c
commit
7dc12d44be
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue