From 5b39679919eb1dda4527de80f95566262ee62799 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 16 Mar 2012 23:09:00 +0100 Subject: [PATCH] fix anonymous login when server has a SSL error. Fixes #7121 --- src/common/connection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index dc6b2c05e..418c1694e 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1333,7 +1333,10 @@ class Connection(CommonConnection, ConnectionHandlers): msg=_('Connection with account %s has been lost. Retry ' 'connecting.') % self.name)) return - name = gajim.config.get_per('accounts', self.name, 'name') + if gajim.config.get_per('accounts', self.name, 'anonymous_auth'): + name = None + else: + name = gajim.config.get_per('accounts', self.name, 'name') self._register_handlers(self.connection, 'ssl') self.connection.auth(name, self.password, self.server_resource, 1, self.__on_auth)