Changeset 9623

Show
Ignore:
Timestamp:
05/11/08 22:19:45 (2 months ago)
Author:
js
Message:

[Kjell Braden] Fix a crash with OTR.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/message_control.py

    r9616 r9623  
    163163                                        gajim.connections[self.account].otr_userstates, 
    164164                                        (gajim.otr_ui_ops, d), 
    165                                         gajim.get_jid_from_account(self.account).encode(), gajim.OTR_PROTO, 
    166                                         self.contact.get_full_jid().encode(), message.encode(), None) 
     165                                        gajim.get_jid_from_account(self.account).encode(), 
     166                                        gajim.OTR_PROTO, self.contact.get_full_jid().encode(), 
     167                                        message.encode(), None, (gajim.otr_add_appdata, self.account)) 
    167168 
    168169                                context = gajim.otr_module.otrl_context_find( 
     
    170171                                                self.contact.get_full_jid().encode(), 
    171172                                                gajim.get_jid_from_account(self.account).encode(), 
    172                                                 gajim.OTR_PROTO, 1)[0] 
     173                                                gajim.OTR_PROTO, 1, (gajim.otr_add_appdata, 
     174                                                self.account))[0] 
    173175 
    174176                                # we send all because inject_message can filter on HTML stuff then