Changeset 1640

Show
Ignore:
Timestamp:
05/25/05 20:25:39 (3 years ago)
Author:
asterix
Message:

show transports rows when we are online, and hide them when we are offline

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/xmpp/auth.py

    r1620 r1640  
    9999    def plugin(self,owner): 
    100100        if not self._owner.Dispatcher.Stream._document_attrs.has_key('version'): self.startsasl='not-supported' 
     101        elif self._owner.Dispatcher.Stream.features:   
     102            try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)   
     103            except NodeProcessed: pass  
    101104        else: self.startsasl=None 
    102105 
  • trunk/src/roster_window.py

    r1638 r1640  
    117117 
    118118                if (user.show == 'offline' or user.show == 'error') and \ 
    119                    not showOffline and not 'Transports' in user.groups and \ 
     119                   not showOffline and (not 'Transports' in user.groups or \ 
     120                        gajim.connections[account].connected < 2) and \ 
    120121                   not self.plugin.queues[account].has_key(user.jid): 
    121122                        return 
     
    152153        def really_remove_user(self, user, account): 
    153154                if user.jid in self.newly_added[account]: 
     155                        return 
     156                if user.jid.find('@') < 1 and gajim.connections[account].connected > 1: # It's an agent 
    154157                        return 
    155158                if user.jid in self.to_be_removed[account]: