Changeset 9613

Show
Ignore:
Timestamp:
05/11/08 03:07:38 (3 months ago)
Author:
js
Message:

Fix a OTR related crash on exit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r9612 r9613  
    328328 
    329329        def is_logged_in(self, opdata={}, accountname="", protocol="", recipient=""): 
    330                 return gajim.contacts.get_contact_from_full_jid(opdata['account'], recipient).show \ 
    331                         in ['dnd', 'xa', 'chat', 'online', 'away', 'invisible'] 
     330                contact = gajim.contacts.get_contact_from_full_jid(opdata['account'], recipient) 
     331                if contact: 
     332                        return contact.show \ 
     333                                in ['dnd', 'xa', 'chat', 'online', 'away', 
     334                                'invisible'] 
     335                return 0 
    332336 
    333337        def inject_message(self, opdata=None, accountname="", protocol="", recipient="",