diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2018-06-30 23:05:25 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2018-07-01 01:29:31 +0100 |
commit | c20f4bf5fa4c7391c833be46960760a883e85151 (patch) | |
tree | d0cc0ba04dfe872e9a30be06de862fd5ecc6bb9c | |
parent | 9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2 (diff) | |
download | slixmpp-c20f4bf5fa4c7391c833be46960760a883e85151.tar.gz slixmpp-c20f4bf5fa4c7391c833be46960760a883e85151.tar.bz2 slixmpp-c20f4bf5fa4c7391c833be46960760a883e85151.tar.xz slixmpp-c20f4bf5fa4c7391c833be46960760a883e85151.zip |
xep_0030: Add cached parameter to find_identities, defaults to True
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | slixmpp/plugins/xep_0030/disco.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index b89c7258..7a682676 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -299,11 +299,11 @@ class XEP_0030(BasePlugin): return self.api['has_identity'](jid, node, ifrom, data) async def find_identities(category, type_, domain=None, timeout=None, - **kwargs): + cached=True, **kwargs): if domain is None: domain = self.xmpp.boundjid.domain - if domain not in self.domain_infos: + if not cached or domain not in self.domain_infos: infos = [self.get_info( domain, timeout=timeout, **kwargs)] iq_items = await self.get_items( |