plugin XEP-0433: Check frontend's allow_external option:
To allow external search, there must now be both the general settings and the `allow_external` option set by frontend.
This commit is contained in:
parent
912ffd4e8b
commit
1a96c32c45
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ class XEP_0433:
|
|||
sequence_matcher: difflib.SequenceMatcher,
|
||||
matches: plugin_misc_jid_search.SearchItems,
|
||||
) -> bool:
|
||||
if options.groupchat and self.allow_external:
|
||||
if options.groupchat and self.allow_external and options.allow_external:
|
||||
log.debug(f"Search {search_term!r} at {self.group_chat_search_default_jid}.")
|
||||
try:
|
||||
external_items = await self.search(
|
||||
|
|
|
|||
Loading…
Reference in a new issue