From d2a62f39f87895b339d0d6650753c05259f23228 Mon Sep 17 00:00:00 2001 From: js Date: Sun, 11 May 2008 20:19:45 +0000 Subject: [PATCH] [Kjell Braden] Fix a crash with OTR. --- src/message_control.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/message_control.py b/src/message_control.py index e527f778d..22a6e51fb 100644 --- a/src/message_control.py +++ b/src/message_control.py @@ -162,14 +162,16 @@ class MessageControl: new_msg = gajim.otr_module.otrl_message_sending( gajim.connections[self.account].otr_userstates, (gajim.otr_ui_ops, d), - gajim.get_jid_from_account(self.account).encode(), gajim.OTR_PROTO, - self.contact.get_full_jid().encode(), message.encode(), None) + gajim.get_jid_from_account(self.account).encode(), + gajim.OTR_PROTO, self.contact.get_full_jid().encode(), + message.encode(), None, (gajim.otr_add_appdata, self.account)) context = gajim.otr_module.otrl_context_find( gajim.connections[self.account].otr_userstates, self.contact.get_full_jid().encode(), gajim.get_jid_from_account(self.account).encode(), - gajim.OTR_PROTO, 1)[0] + gajim.OTR_PROTO, 1, (gajim.otr_add_appdata, + self.account))[0] # we send all because inject_message can filter on HTML stuff then gajim.otr_module.otrl_message_fragment_and_send(