From f2e214a0339f3620768743c94960617f2e14f25c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 23 Jun 2009 22:24:39 +0200 Subject: [PATCH] use helper function --- src/common/connection_handlers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index b9ad25d6b..abda5877a 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1553,9 +1553,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, groups.append(group.getData()) self.dispatch('ROSTER_INFO', (jid, name, sub, ask, groups)) if version: - account_jid = '%s@%s' % ( - gajim.config.get_per('accounts', self.name, 'name'), - gajim.config.get_per('accounts', self.name, 'hostname')) + account_jid = gajim.get_jid_from_account(self.name) gajim.logger.add_or_update_contact(account_jid, jid, name, sub, groups) gajim.config.set_per('accounts', self.name, 'roster_version',