From 7ce1fa4e46e83e4e6e1561c8af2f6b3d3787f86b Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 2 Oct 2006 11:42:26 +0000 Subject: [PATCH] self.name not self [in connection.py] --- src/common/connection.py | 6 +++--- src/roster_window.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 8ee5960f9..2f4e0895a 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -121,7 +121,7 @@ class Connection(ConnectionHandlers): def _disconnectedReconnCB(self): '''Called when we are disconnected''' gajim.log.debug('disconnectedReconnCB') - if gajim.account_is_connected(self): + if gajim.account_is_connected(self.name): # we cannot change our status to offline or connecting # after we auth to server self.old_show = STATUS_LIST[self.connected] @@ -450,7 +450,7 @@ class Connection(ConnectionHandlers): # END connect def quit(self, kill_core): - if kill_core and gajim.account_is_connected(self): + if kill_core and gajim.account_is_connected(self.name): self.disconnect(on_purpose = True) def get_privacy_lists(self): @@ -1108,7 +1108,7 @@ class Connection(ConnectionHandlers): # as a class property as pass it as an argument def _on_unregister_account_connect(con): self.on_connect_auth = None - if gajim.account_is_connected(self): + if gajim.account_is_connected(self.name): hostname = gajim.config.get_per('accounts', self.name, 'hostname') iq = common.xmpp.Iq(typ = 'set', to = hostname) q = iq.setTag(common.xmpp.NS_REGISTER + ' query').setTag('remove') diff --git a/src/roster_window.py b/src/roster_window.py index d32c3b138..693edab2c 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2075,7 +2075,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) return True for acct in gajim.connections: if not gajim.config.get_per('accounts', acct, - 'sync_with_global_status'): + 'sync_with_global_status'): continue current_show = gajim.SHOW_LIST[gajim.connections[acct].connected] self.send_status(acct, current_show, message)