]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Allow spaces infront
authorvague666 <redacted>
Fri, 4 Mar 2022 14:43:25 +0000 (15:43 +0100)
committerAilin Nemui <redacted>
Mon, 25 Apr 2022 11:55:30 +0000 (13:55 +0200)
scripts/intercept.pl

index 8f6b475e7dd161dd1e285b2dfd472620b32a95cd..9528294bc75a38a86b5f6ce10b14dab0ef518d79 100644 (file)
@@ -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 = {
git clone https://git.99rst.org/PROJECT