From: vague666 Date: Thu, 10 Mar 2022 15:43:44 +0000 (+0100) Subject: Fix regexp for command matching X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=98faaa8bbc10b59ac7e8b51d8f257e7757f4abea;p=irssi-scripts.irssi.org.git Fix regexp for command matching --- diff --git a/scripts/intercept.pl b/scripts/intercept.pl index 9528294..4fef6f6 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 =~ /^\s*($cmdregexp)/i) { + elsif($data =~ /^\s*($cmdregexp)\b/i) { my $text = "The first word, '$1', looks like a command, is this what you wanted? [y/F/c]"; $isword = 1; $pending_input = {