From b230b983361532c16d5e29c425c3dc72a9379906 Mon Sep 17 00:00:00 2001 From: bcoles Date: Sun, 25 Mar 2012 14:13:44 +1030 Subject: [PATCH] Changed `BeEF::API.registered?()` to use the `:is_matched_params` method Fixes issue #500 --- core/api.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/api.rb b/core/api.rb index 3ad1bf391..0d845d02d 100644 --- a/core/api.rb +++ b/core/api.rb @@ -60,10 +60,9 @@ module BeEF # @param [String] method the method of the class # @param [Array] params an array of parameters that need to be matched # @return [Boolean] whether or not the owner is registered - # @todo Change the param matching to use the new :is_matched_params?() method - Issue #479 def registered?(owner, c, method, params = []) @registry.each{|r| - if r['owner'] == owner and r['class'] == c and r['method'] == method and params == r['params'] + if r['owner'] == owner and r['class'] == c and r['method'] == method and self.is_matched_params?(r, params) return true end }