summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-11 23:32:44 +0200
committermathieui <mathieui@mathieui.net>2013-08-11 23:32:44 +0200
commite06eac8182d44c3465b656cc704b4e7756f999c2 (patch)
treee612a5727a97eea3a5acec1d2b7ab235ce625e53 /plugins
parenta724be0e726d2cd468b780d68882f755f29303b1 (diff)
downloadpoezio-e06eac8182d44c3465b656cc704b4e7756f999c2.tar.gz
poezio-e06eac8182d44c3465b656cc704b4e7756f999c2.tar.bz2
poezio-e06eac8182d44c3465b656cc704b4e7756f999c2.tar.xz
poezio-e06eac8182d44c3465b656cc704b4e7756f999c2.zip
Mark OTR messages as private (as in carbons)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/otr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 49b4224d..91c814e9 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -199,7 +199,9 @@ class PoezioContext(Context):
return False
def inject(self, msg, appdata=None):
- self.xmpp.send_message(mto=self.peer, mbody=msg.decode('ascii'), mtype='chat')
+ message = self.xmpp.make_message(mto=self.peer, mbody=msg.decode('ascii'), mtype='chat')
+ message.enable('carbon_private')
+ message.send()
def setState(self, newstate):
tab = self.core.get_tab_by_name(self.peer)