File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -649,14 +649,14 @@ def stance
649
649
# Returns true if the exploit has an aggressive stance.
650
650
#
651
651
def aggressive?
652
- ( stance == Stance ::Aggressive || stance . include? ( Stance :: Aggressive ) )
652
+ ( stance == Stance ::Aggressive )
653
653
end
654
654
655
655
#
656
656
# Returns if the exploit has a passive stance.
657
657
#
658
658
def passive?
659
- ( stance == Stance ::Passive || stance . include? ( Stance :: Passive ) )
659
+ ( stance == Stance ::Passive )
660
660
end
661
661
662
662
#
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def cli=(cli)
73
73
end
74
74
75
75
def print_prefix
76
- if cli && ( respond_to? ( :aggressive ) && ! aggressive? )
76
+ if cli && ! ( stance == Stance :: Aggressive || stance . include? ( Stance :: Aggressive ) )
77
77
super + "#{ cli . peerhost . ljust ( 16 ) } #{ self . shortname } - "
78
78
else
79
79
super
You can’t perform that action at this time.
0 commit comments