From e0804cf0cbcab3e781ea49456fe384c853288a90 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Fri, 5 Jan 2024 13:59:31 +0000 Subject: [PATCH] Print additional settings notice on non-empty datastore values --- lib/msf/ui/console/command_dispatcher/modules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/command_dispatcher/modules.rb b/lib/msf/ui/console/command_dispatcher/modules.rb index 634ce6a60695..5abef87c5ed0 100644 --- a/lib/msf/ui/console/command_dispatcher/modules.rb +++ b/lib/msf/ui/console/command_dispatcher/modules.rb @@ -890,7 +890,7 @@ def cmd_use(*args) end # If any additional datastore values were provided, set these values - unless additional_datastore_values.nil? + unless additional_datastore_values.nil? || additional_datastore_values.empty? mod.datastore.update(additional_datastore_values) print_status("Additionally setting #{additional_datastore_values.map { |k,v| "#{k} => #{v}" }.join(", ")}") end