Never join a room when invisible

This commit is contained in:
Yann Leboulanger 2006-03-29 14:32:45 +00:00
parent 0690a35eea
commit bfe1e8c631
1 changed files with 3 additions and 0 deletions

View File

@ -858,6 +858,9 @@ class Connection(ConnectionHandlers):
if not self.connection:
return
show = helpers.get_xmpp_show(STATUS_LIST[self.connected])
if show == 'invisible':
# Never join a room when invisible
return
p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
show = show, status = self.status)
if gajim.config.get('send_sha_in_gc_presence'):