From: vague666 Date: Fri, 4 Mar 2022 14:43:25 +0000 (+0100) Subject: Allow spaces infront X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b68502dd80f8977aa7bc02e9d46b9f70981e75e4;p=irssi-scripts.irssi.org.git Allow spaces infront --- diff --git a/scripts/intercept.pl b/scripts/intercept.pl index 8f6b475..9528294 100644 --- a/scripts/intercept.pl +++ b/scripts/intercept.pl @@ -128,7 +128,7 @@ sub sig_send_text { Irssi::signal_stop(); require_confirmation($text); } - elsif($data =~ /^($cmdregexp)/i) { + elsif($data =~ /^\s*($cmdregexp)/i) { my $text = "The first word, '$1', looks like a command, is this what you wanted? [y/F/c]"; $isword = 1; $pending_input = {