core (disco): use of “profile” instead of “profile_key” in several disco methods
This commit is contained in:
parent
083f426b24
commit
341143445b
1 changed files with 50 additions and 48 deletions
|
|
@ -99,7 +99,7 @@ class XEP_0033(object):
|
|||
self.sendAndStoreMessage(mess_data, entries, profile)
|
||||
log.debug("XEP-0033 took over")
|
||||
raise failure.Failure(exceptions.CancelError())
|
||||
d = self.host.findFeaturesSet([NS_ADDRESS], profile_key=profile)
|
||||
d = self.host.findFeaturesSet([NS_ADDRESS], profile=profile)
|
||||
d.addCallbacks(discoCallback, lambda dummy: discoCallback(None))
|
||||
return d
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ class XEP_0033(object):
|
|||
defer_list = []
|
||||
for type_, jid_ in entries:
|
||||
d = defer.Deferred()
|
||||
d.addCallback(self.host.findFeaturesSet, jid_=JID(JID(jid_).host), profile_key=profile)
|
||||
d.addCallback(self.host.findFeaturesSet, jid_=JID(JID(jid_).host), profile=profile)
|
||||
d.addCallbacks(discoCallback, errback, callbackArgs=[jid_], errbackArgs=[jid_])
|
||||
d.callback([NS_ADDRESS])
|
||||
defer_list.append(d)
|
||||
|
|
|
|||
Loading…
Reference in a new issue