Mercurial > libervia-backend
comparison src/plugins/plugin_exp_parrot.py @ 602:6fd1095b2b7b
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)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 22 Feb 2013 00:15:50 +0100 |
parents | e629371a28d3 |
children | 1d6f48ae31d1 |
comparison
equal
deleted
inserted
replaced
601:a4f6f78f0620 | 602:6fd1095b2b7b |
---|---|
92 src_txt = from_jid.user | 92 src_txt = from_jid.user |
93 msg = "[%s] %s" % (src_txt, mess_body) | 93 msg = "[%s] %s" % (src_txt, mess_body) |
94 | 94 |
95 linked = _links[from_jid.userhostJID()] | 95 linked = _links[from_jid.userhostJID()] |
96 | 96 |
97 self.host.sendMessage(unicode(linked), msg, None, "auto", profile_key=profile) | 97 self.host._sendMessage(unicode(linked), msg, None, "auto", profile_key=profile) |
98 else: | 98 else: |
99 warning("No body element found in message, following normal behaviour") | 99 warning("No body element found in message, following normal behaviour") |
100 | 100 |
101 return True | 101 return True |
102 | 102 |