show transports rows when we are online, and hide them when we are offline
This commit is contained in:
parent
1c86ae3f18
commit
693aad9b19
|
@ -98,6 +98,9 @@ class SASL(PlugIn):
|
|||
""" Implements SASL authentication. """
|
||||
def plugin(self,owner):
|
||||
if not self._owner.Dispatcher.Stream._document_attrs.has_key('version'): self.startsasl='not-supported'
|
||||
elif self._owner.Dispatcher.Stream.features:
|
||||
try: self.FeaturesHandler(self._owner.Dispatcher,self._owner.Dispatcher.Stream.features)
|
||||
except NodeProcessed: pass
|
||||
else: self.startsasl=None
|
||||
|
||||
def auth(self,username,password):
|
||||
|
|
|
@ -116,7 +116,8 @@ class Roster_window:
|
|||
user.groups.append('General')
|
||||
|
||||
if (user.show == 'offline' or user.show == 'error') and \
|
||||
not showOffline and not 'Transports' in user.groups and \
|
||||
not showOffline and (not 'Transports' in user.groups or \
|
||||
gajim.connections[account].connected < 2) and \
|
||||
not self.plugin.queues[account].has_key(user.jid):
|
||||
return
|
||||
|
||||
|
@ -152,6 +153,8 @@ class Roster_window:
|
|||
def really_remove_user(self, user, account):
|
||||
if user.jid in self.newly_added[account]:
|
||||
return
|
||||
if user.jid.find('@') < 1 and gajim.connections[account].connected > 1: # It's an agent
|
||||
return
|
||||
if user.jid in self.to_be_removed[account]:
|
||||
self.to_be_removed[account].remove(user.jid)
|
||||
if gajim.config.get('showoffline'):
|
||||
|
|
Loading…
Reference in New Issue