Changeset 6348 for trunk/src/gajim.py

Show
Ignore:
Timestamp:
05/21/06 21:46:36 (3 years ago)
Author:
jim++
Message:

Do not play incoming message sound when message from unknown contact and ignore_unknown_contacts
Fixes #1970.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r6342 r6348  
    508508                        return 
    509509 
     510                if gajim.config.get('ignore_unknown_contacts') and \ 
     511                        not gajim.contacts.get_contact(account, jid) and not pm: 
     512                        return 
     513 
    510514                first = False 
    511515                if not chat_control and not gajim.awaiting_events[account].has_key( 
     
    542546                        return 
    543547                                 
    544                 # THIS HAS TO BE AFTER PM handling so we can get PMs 
    545                 if gajim.config.get('ignore_unknown_contacts') and \ 
    546                         not gajim.contacts.get_contact(account, jid): 
    547                         return 
    548  
    549548                if first: 
    550549                        if gajim.config.get('notify_on_new_message') and \