Show
Ignore:
Timestamp:
06/25/08 11:25:43 (5 months ago)
Author:
asterix
Message:

don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r9838 r9839  
    11021102                                self.privacy_rules_supported = True 
    11031103                                self.get_privacy_list('block') 
     1104                        elif self.continue_connect_info: 
     1105                                if self.continue_connect_info[0] == 'invisible': 
     1106                                        # Trying to login as invisible but privacy list not supported 
     1107                                        self.disconnect(on_purpose=True) 
     1108                                        self.dispatch('STATUS', 'offline') 
     1109                                        self.dispatch('ERROR', (_('Invisibility not supported'), 
     1110                                                _('Account %s doesn\'t support invisibility.') % self.name)) 
     1111                                        return 
    11041112                        # Ask metacontacts before roster 
    11051113                        self.get_metacontacts()