Changeset 9612

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

Fix crash in GC query when OTR is active.

Files:

Legend:

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

    r9607 r9612  
    292292                                ctrl.print_conversation_line(u" [OTR] %s"%msg, 'status', '', None) 
    293293                id = gajim.logger.write('chat_msg_recv', fjid, message=msg, tim=tim) 
    294                 gajim.logger.set_read_messages([id]) 
     294                if id: 
     295                        gajim.logger.set_read_messages([id]) 
    295296 
    296297        def policy(self, opdata=None, context=None): 
     
    385386                 
    386387                ctrl = gajim.interface.msg_win_mgr.get_control( 
    387                         gajim.get_jid_without_resource(unicode(context.username)), 
    388                                 opdata['account']) 
     388                        unicode(context.username), opdata['account']) 
    389389                if ctrl: 
    390390                        ctrl.update_otr(True)