Skip to content

Commit 8e5deac

Browse files
committed
Fix nil bug in setting PromptChar without Prompt
1 parent e941677 commit 8e5deac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/ui/console/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def on_variable_set(glob, var, val)
593593
when "prompt"
594594
update_prompt(val, framework.datastore['PromptChar'] || DefaultPromptChar, true)
595595
when "promptchar"
596-
update_prompt(framework.datastore['Prompt'], val, true)
596+
update_prompt(framework.datastore['Prompt'] || DefaultPrompt, val, true)
597597
end
598598
end
599599

0 commit comments

Comments
 (0)