core: sendMessage refactoring:

- sendMessage now use JID instead  of unicode, bridge method using unicode is now _sendMessage
    - added no_trigger argument, so it's now possible to forbid trigger execution (to avoid any plugin when we send a message)
This commit is contained in:
Goffi 2013-02-22 00:15:50 +01:00
commit d339e79b1c

View file

@ -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(unicode(linked), msg, None, "auto", profile_key=profile)
else:
warning("No body element found in message, following normal behaviour")