From c7209344219faf9b31f9d8521016e69d90e4582b Mon Sep 17 00:00:00 2001 From: xntrik Date: Tue, 28 Jun 2011 09:45:40 +0000 Subject: [PATCH] fixes issue 341 git-svn-id: https://beef.googlecode.com/svn/trunk@1036 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api.rb b/core/api.rb index d0c236706..44d6202ec 100644 --- a/core/api.rb +++ b/core/api.rb @@ -10,7 +10,7 @@ module API # Calls a API fire against a certain class / module (c) method (m) with n parameters (*args) # def self.fire(c, m, *args) - if self.verify_api_path(c, m) + if self.verify_api_path(c, m) and c.ancestors[0].to_s > "BeEF::API" method = self.get_api_path(c, m) c.extended_in_modules.each do |mod| begin