Land #3428, deprecation warns for payloads

This commit is contained in:
Tod Beardsley 2014-06-11 09:57:07 -05:00
commit 4b8961a464
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 7 additions and 1 deletions

View File

@ -70,13 +70,19 @@ module Msf::Module::Deprecated
print_warning("*"*72)
end
def init_ui(input = nil, output = nil)
super(input, output)
print_deprecation_warning
@you_have_been_warned = true
end
def generate
print_deprecation_warning
super
end
def setup
print_deprecation_warning
print_deprecation_warning unless @you_have_been_warned
super
end