Changeset 6271

Show
Ignore:
Timestamp:
05/03/06 15:22:05 (3 years ago)
Author:
asterix
Message:

new ACE option: print_status_in_muc. Fixes #1502

Location:
trunk/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chat_control.py

    r6265 r6271  
    10681068 
    10691069                if frm == 'status': 
     1070                        if not gajim.config.get('print_status_in_chats'): 
     1071                                return 
    10701072                        kind = 'status' 
    10711073                        name = '' 
  • trunk/src/common/config.py

    r6170 r6271  
    181181                'show_avatars_in_roster': [opt_bool, True, '', True], 
    182182                'ask_avatars_on_startup': [opt_bool, True, _('If True, Gajim will ask for avatar each contact that did not have an avatar last time or has one cached that is too old.')], 
    183                 #FIXME: remove you and make it Gajim will not; and/or his or *her* status messages 
    184                 'print_status_in_chats': [opt_bool, True, _('If False, you will no longer see status line in chats when a contact changes his or her status and/or his status message.')], 
     183                'print_status_in_chats': [opt_bool, True, _('If False, Gajim will no longer print status line in chats when a contact changes his or her status and/or his or her status message.')], 
     184                'print_status_in_muc': [opt_bool, True, _('If False, Gajim will no longer print status line in groupchats when a member changes his or her status and/or his or her status message.')], 
    185185                'log_contact_status_changes': [opt_bool, False], 
    186186                'restored_messages_color': [opt_str, 'grey'], 
  • trunk/src/conversation_textview.py

    r6267 r6271  
    570570                        other_tags_for_text = [], subject = None): 
    571571                '''prints 'chat' type messages''' 
    572                 if kind == 'status' and not gajim.config.get('print_status_in_chats'): 
    573                                 return 
    574572                # kind = info, we print things as if it was a status: same color, ... 
    575573                if kind == 'info': 
  • trunk/src/groupchat_control.py

    r6265 r6271  
    506506                                self.parent_win.redraw_tab(self, 'newmsg') 
    507507                else: 
     508                        if not gajim.config.get('print_status_in_muc'): 
     509                                return 
    508510                        kind = 'status' 
    509511