Show
Ignore:
Timestamp:
02/06/08 06:24:07 (10 months ago)
Author:
bct
Message:

post-refactor traceback fixing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/session_centric/src/notify.py

    r9299 r9308  
    5454        USER_HAS_GROWL = False 
    5555 
    56  
    57 def get_show_in_roster(event, account, contact): 
     56def get_show_in_roster(event, account, contact, session = None): 
    5857        '''Return True if this event must be shown in roster, else False''' 
    5958        if event == 'gc_message_received': 
     
    6665                        return False 
    6766        if event == 'message_received': 
    68                 chat_control = helpers.get_chat_control(account, contact) 
    69                 if chat_control: 
     67                if session: 
     68                        if session.control: 
     69                                return False 
     70                elif helpers.get_chat_control(account, contact): 
    7071                        return False 
    7172        return True