xep_0030: Use self directly as we're already in disco

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-06-30 22:47:04 +01:00
parent 037706552c
commit e7872aaa29

View file

@ -303,13 +303,13 @@ class XEP_0030(BasePlugin):
domain = self.xmpp.boundjid.domain domain = self.xmpp.boundjid.domain
if domain not in self.domain_infos: if domain not in self.domain_infos:
infos = [self.xmpp['xep_0030'].get_info( infos = [self.get_info(
domain, timeout=timeout)] domain, timeout=timeout)]
iq_items = await self.xmpp['xep_0030'].get_items( iq_items = await self.get_items(
domain, timeout=timeout) domain, timeout=timeout)
items = iq_items['disco_items']['items'] items = iq_items['disco_items']['items']
infos += [ infos += [
self.xmpp['xep_0030'].get_info(item[0], timeout=timeout) self.get_info(item[0], timeout=timeout)
for item in items] for item in items]
info_futures, _ = await asyncio.wait(infos, timeout=timeout) info_futures, _ = await asyncio.wait(infos, timeout=timeout)