Skip to content

Commit

Permalink
Use first module with enabled hierarchical search
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Jan 3, 2024
1 parent 0f4644d commit afdb34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/ui/console/command_dispatcher/modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def cmd_search(*args)
end
end
end
if @module_search_results_with_usage_metadata.length == 1 && use
if @module_search_results.length == 1 && use
used_module = @module_search_results_with_usage_metadata.first[:mod].fullname
cmd_use(used_module, true)
end
Expand Down

0 comments on commit afdb34d

Please sign in to comment.