Skip to content

Commit 7601152

Browse files
committed
2 parents 5dfb3de + 6a5d1d0 commit 7601152

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)