From c3e743e5f0caf8b45363e1768dadc87587649453 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Mon, 28 Mar 2016 18:32:56 +0300 Subject: [PATCH] Fixed #203: Wrong load order of modules. --- lib/bettercap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bettercap.rb b/lib/bettercap.rb index dcc065bf..813c7d01 100644 --- a/lib/bettercap.rb +++ b/lib/bettercap.rb @@ -52,7 +52,7 @@ def bettercap_autoload( path = '' ) filename = "bettercap/#{path}#{filename}" # Proxy modules must be loaded at runtime. unless filename =~ /.+\/inject[a-z]+$/i - if filename.end_with?('/base') + if filename.end_with?('/base') or filename.include?('pluggable') deps << filename elsif filename.include?('monkey') monkey << filename