fix some var name
This commit is contained in:
parent
04f6c68244
commit
97ec4df020
|
@ -831,14 +831,14 @@ class PresenceReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
if self.ptype == 'subscribe':
|
if self.ptype == 'subscribe':
|
||||||
log.debug('subscribe request from %s' % self.jfid)
|
log.debug('subscribe request from %s' % self.jfid)
|
||||||
if self.fjid.find('@') <= 0 and self.fjid in \
|
if self.fjid.find('@') <= 0 and self.fjid in \
|
||||||
self.agent_registrations:
|
self.conn.agent_registrations:
|
||||||
self.agent_registrations[self.fjid]['sub_received'] = True
|
self.conn.agent_registrations[self.fjid]['sub_received'] = True
|
||||||
if not self.agent_registrations[self.fjid]['roster_push']:
|
if not self.conn.agent_registrations[self.fjid]['roster_push']:
|
||||||
# We'll reply after roster push result
|
# We'll reply after roster push result
|
||||||
return
|
return
|
||||||
if gajim.config.get_per('accounts', self.conn.name, 'autoauth') or \
|
if gajim.config.get_per('accounts', self.conn.name, 'autoauth') or \
|
||||||
self.fjid.find('@') <= 0 or self.jid in self.jids_for_auto_auth or \
|
self.fjid.find('@') <= 0 or self.jid in \
|
||||||
transport_auto_auth:
|
self.conn.jids_for_auto_auth or transport_auto_auth:
|
||||||
if self.conn.connection:
|
if self.conn.connection:
|
||||||
p = xmpp.Presence(self.fjid, 'subscribed')
|
p = xmpp.Presence(self.fjid, 'subscribed')
|
||||||
p = self.conn.add_sha(p)
|
p = self.conn.add_sha(p)
|
||||||
|
|
Loading…
Reference in New Issue