Changeset 9308 for branches/session_centric/src/notify.py
- Timestamp:
- 02/06/08 06:24:07 (10 months ago)
- Files:
-
- 1 modified
-
branches/session_centric/src/notify.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/session_centric/src/notify.py
r9299 r9308 54 54 USER_HAS_GROWL = False 55 55 56 57 def get_show_in_roster(event, account, contact): 56 def get_show_in_roster(event, account, contact, session = None): 58 57 '''Return True if this event must be shown in roster, else False''' 59 58 if event == 'gc_message_received': … … 66 65 return False 67 66 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): 70 71 return False 71 72 return True
