]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Fixed the operator from the original code, and indentation
authorGeir Arne Aasen <redacted>
Wed, 20 Aug 2025 17:00:58 +0000 (19:00 +0200)
committerGeir Arne Aasen <redacted>
Wed, 20 Aug 2025 17:00:58 +0000 (19:00 +0200)
scripts/autoop.pl

index 623606c63c28661345dd856af2ad53cda2bd200a..ce37e7053c7978a2df3de1d9e76a793403230b90 100644 (file)
@@ -98,11 +98,11 @@ sub load_autoops {
     %opnicks = ();
     open(CONF, "<", "$file") or return;
     while (my $line = <CONF>) {
-               chomp($line);
-               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