From 2a64f0e324418522077da6b3449fb3b7caeaba4e Mon Sep 17 00:00:00 2001 From: Durel Date: Sun, 11 Feb 2018 13:28:27 -0500 Subject: [PATCH] 1) Removed unhelpful warning when accessing an unidentified container --- aard_inventory.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aard_inventory.xml b/aard_inventory.xml index 6179448..c2d4919 100644 --- a/aard_inventory.xml +++ b/aard_inventory.xml @@ -7756,7 +7756,14 @@ function inv.items.keywordCR() -- Let the user know if no items matched their query elseif (idArray == nil) or (#idArray == 0) then - dbot.info("No match found for keyword query: \"" .. inv.items.keywordPkg.queryString .. "\"") + -- 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 .. "\"") + end -- if else numQueryItems = #idArray