Don't log the OTR initiation request (?OTR?).

This commit is contained in:
js 2008-05-11 17:40:22 +00:00
parent 2a51c443e5
commit 0378ed821d

View file

@ -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'])