From 6940e4276b428526e40b57c68081adbf2340e802 Mon Sep 17 00:00:00 2001 From: nicoco Date: Tue, 15 Nov 2022 09:23:50 +0100 Subject: [PATCH] xep_0030: allow extra args in get_info_from_domain --- slixmpp/plugins/xep_0030/disco.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index 1169a50e..cd7d9d63 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -307,7 +307,7 @@ class XEP_0030(BasePlugin): return self.api['has_identity'](jid, node, ifrom, data) async def get_info_from_domain(self, domain=None, timeout=None, - cached=True, callback=None): + cached=True, callback=None, **iqkwargs): """Fetch disco#info of specified domain and one disco#items level below """ @@ -316,12 +316,12 @@ class XEP_0030(BasePlugin): if not cached or domain not in self.domain_infos: infos = [self.get_info( - domain, timeout=timeout)] + domain, timeout=timeout, **iqkwargs)] iq_items = await self.get_items( - domain, timeout=timeout) + domain, timeout=timeout, **iqkwargs) items = iq_items['disco_items']['items'] infos += [ - self.get_info(item[0], timeout=timeout) + self.get_info(item[0], timeout=timeout, **iqkwargs) for item in items] info_futures, _ = await asyncio.wait( infos,