Skip to content

Commit 6a5d1d0

Browse files
author
Tod Beardsley
committed
Make the conditional correct for print_prefix
Fixes a bug introduced on rapid7#1936.
1 parent d7e3c5c commit 6a5d1d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/msf/core/module.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@ def replicant
179179
#
180180

181181
def print_prefix
182-
if framework && (
183-
datastore['TimestampOutput'] =~ /^(t|y|1)/i or
184-
framework.datastore['TimestampOutput'] =~ /^(t|y|1)/i
182+
if (datastore['TimestampOutput'] =~ /^(t|y|1)/i) || (
183+
framework && framework.datastore['TimestampOutput'] =~ /^(t|y|1)/i
185184
)
186185
prefix = "[#{Time.now.strftime("%Y.%m.%d-%H:%M:%S")}] "
187186

0 commit comments

Comments
 (0)