From: Geir Arne Aasen Date: Wed, 20 Aug 2025 14:42:22 +0000 (+0200) Subject: chomp input line to strip trailing newline to ensure that mask is matched X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ca5af4e1a0da2cd306b65aa9be66fe5337a9368e;p=irssi-scripts.irssi.org.git chomp input line to strip trailing newline to ensure that mask is matched --- diff --git a/scripts/autoop.pl b/scripts/autoop.pl index b72def1..0c356a5 100644 --- a/scripts/autoop.pl +++ b/scripts/autoop.pl @@ -98,10 +98,11 @@ sub load_autoops { %opnicks = (); open(CONF, "<", "$file") or return; while (my $line = ) { - if ($line !=~ /^\s*$/) { - cmd_autoop($line); - $count++; - } + chomp($line); + if ($line !=~ /^\s*$/) { + cmd_autoop($line); + $count++; + } } close(CONF);