From 6c5e68796086c3f57f358a54774b892cd1813f1a Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 7 Sep 2005 16:20:40 +0000 Subject: [PATCH] get server resource after auth (resource binding is performed there) --- src/common/connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index cd4b66831..c6e8ce43a 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1131,8 +1131,6 @@ class Connection: if not roster: roster = {} - if iq_obj.getTo() is not None: - self.server_resource = iq_obj.getTo().getResource() name = gajim.config.get_per('accounts', self.name, 'name') hostname = gajim.config.get_per('accounts', self.name, 'hostname') if roster.has_key(name + '@' + hostname): @@ -1344,6 +1342,7 @@ class Connection: self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name, _('Check your connection or try again later'))) return None + self.server_resource = con.Resource con.RegisterEventHandler(self._event_dispatcher) if auth: con.initRoster()