]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
chomp input line to strip trailing newline to ensure that mask is matched
authorGeir Arne Aasen <redacted>
Wed, 20 Aug 2025 14:42:22 +0000 (16:42 +0200)
committerGeir Arne Aasen <redacted>
Wed, 20 Aug 2025 14:42:22 +0000 (16:42 +0200)
scripts/autoop.pl

index b72def15776554c8f7bb4ea1525f3795e2728b16..0c356a5ed9aba51afc7b4711cc76fe52af7f6959 100644 (file)
@@ -98,10 +98,11 @@ sub load_autoops {
     %opnicks = ();
     open(CONF, "<", "$file") or return;
     while (my $line = <CONF>) {
-       if ($line !=~ /^\s*$/) {
-           cmd_autoop($line);
-           $count++;
-       }
+               chomp($line);
+               if ($line !=~ /^\s*$/) {
+                       cmd_autoop($line);
+                       $count++;
+               }
     }
     close(CONF);
     
git clone https://git.99rst.org/PROJECT