Use common code to delete non-applicable cmds.

bug/bundler_fix
Pearce Barry 2017-07-03 09:11:04 -05:00
parent e21ae88b55
commit ef1145c6b7
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
1 changed files with 1 additions and 11 deletions

View File

@ -35,17 +35,7 @@ module Rex
'listen' => [ 'audio_mic_start' ]
}
all.delete_if do |cmd, _desc|
del = false
reqs[cmd].each do |req|
next if client.commands.include? req
del = true
break
end
del
end
all
filter_commands(all, reqs)
end
#