From bfe1e8c6313426ca338d80bd6841bf69b601b8bd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 29 Mar 2006 14:32:45 +0000 Subject: [PATCH] Never join a room when invisible --- src/common/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 92372b62e..d5ab1d9fa 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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'):