From 0378ed821d3663b80e55310b99562a3004f4e9e5 Mon Sep 17 00:00:00 2001 From: js Date: Sun, 11 May 2008 17:40:22 +0000 Subject: [PATCH] Don't log the OTR initiation request (?OTR?). --- src/gajim.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 4d430921f..41287453e 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -369,11 +369,16 @@ class OtrlMessageAppOps: if msg_type == otr.OTRL_MSGTYPE_QUERY: # split away XHTML-contaminated explanatory message message = unicode(message.splitlines()[0]) - message += u"\nThis user has requested an Off-the-Record private " \ + message += _(u"\nThis user has requested an Off-the-Record private " \ "conversation. However, you do not have a plugin to " \ "support that.\nSee http://otr.cypherpunks.ca/ for more "\ - "information." + "information.") + gajim.connections[opdata['account']].connection.send( + common.xmpp.Message(to = recipient, + body = message, typ = 'chat')) + return + gajim.connections[opdata['account']].send_message(recipient, message, **opdata['kwargs'])