self.name not self [in connection.py]
This commit is contained in:
parent
6bab3917b1
commit
7ce1fa4e46
2 changed files with 4 additions and 4 deletions
|
@ -121,7 +121,7 @@ class Connection(ConnectionHandlers):
|
||||||
def _disconnectedReconnCB(self):
|
def _disconnectedReconnCB(self):
|
||||||
'''Called when we are disconnected'''
|
'''Called when we are disconnected'''
|
||||||
gajim.log.debug('disconnectedReconnCB')
|
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
|
# we cannot change our status to offline or connecting
|
||||||
# after we auth to server
|
# after we auth to server
|
||||||
self.old_show = STATUS_LIST[self.connected]
|
self.old_show = STATUS_LIST[self.connected]
|
||||||
|
@ -450,7 +450,7 @@ class Connection(ConnectionHandlers):
|
||||||
# END connect
|
# END connect
|
||||||
|
|
||||||
def quit(self, kill_core):
|
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)
|
self.disconnect(on_purpose = True)
|
||||||
|
|
||||||
def get_privacy_lists(self):
|
def get_privacy_lists(self):
|
||||||
|
@ -1108,7 +1108,7 @@ class Connection(ConnectionHandlers):
|
||||||
# as a class property as pass it as an argument
|
# as a class property as pass it as an argument
|
||||||
def _on_unregister_account_connect(con):
|
def _on_unregister_account_connect(con):
|
||||||
self.on_connect_auth = None
|
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')
|
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
|
||||||
iq = common.xmpp.Iq(typ = 'set', to = hostname)
|
iq = common.xmpp.Iq(typ = 'set', to = hostname)
|
||||||
q = iq.setTag(common.xmpp.NS_REGISTER + ' query').setTag('remove')
|
q = iq.setTag(common.xmpp.NS_REGISTER + ' query').setTag('remove')
|
||||||
|
|
|
@ -2075,7 +2075,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
return True
|
return True
|
||||||
for acct in gajim.connections:
|
for acct in gajim.connections:
|
||||||
if not gajim.config.get_per('accounts', acct,
|
if not gajim.config.get_per('accounts', acct,
|
||||||
'sync_with_global_status'):
|
'sync_with_global_status'):
|
||||||
continue
|
continue
|
||||||
current_show = gajim.SHOW_LIST[gajim.connections[acct].connected]
|
current_show = gajim.SHOW_LIST[gajim.connections[acct].connected]
|
||||||
self.send_status(acct, current_show, message)
|
self.send_status(acct, current_show, message)
|
||||||
|
|
Loading…
Add table
Reference in a new issue