Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Fixed #203: Wrong load order of modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Mar 28, 2016
1 parent c2a025b commit c3e743e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bettercap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3e743e

Please sign in to comment.