1) Removed unhelpful warning when accessing an unidentified container

master
Durel 7 years ago
parent a31847c2ed
commit 2a64f0e324

@ -7756,7 +7756,14 @@ function inv.items.keywordCR()
-- Let the user know if no items matched their query -- Let the user know if no items matched their query
elseif (idArray == nil) or (#idArray == 0) then elseif (idArray == nil) or (#idArray == 0) then
-- If we can't find a container for a refresh update, that container probably is just not identified
-- yet. We don't want to spam the user with messages about not finding the keyword query in that
-- case.
if (inv.items.keywordPkg.keyword == invItemsRefreshClean) then
dbot.debug("Failed to find container for clean/dirty update. You probably need a \"dinv refresh\"")
else
dbot.info("No match found for keyword query: \"" .. inv.items.keywordPkg.queryString .. "\"") dbot.info("No match found for keyword query: \"" .. inv.items.keywordPkg.queryString .. "\"")
end -- if
else else
numQueryItems = #idArray numQueryItems = #idArray

Loading…
Cancel
Save