use helper function

This commit is contained in:
Yann Leboulanger 2009-06-23 22:24:39 +02:00
parent 0a3d26e5d4
commit f2e214a033
1 changed files with 1 additions and 3 deletions

View File

@ -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',