Skip to content

Commit 8a61206

Browse files
authored
Merge pull request #892 from vidofnir/master
[autoop.pl] Chomp input line to strip trailing newline
2 parents 3faa25e + 3ef32f6 commit 8a61206

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/autoop.pl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use strict;
66
use vars qw($VERSION %IRSSI);
77

8-
$VERSION = "1.10";
8+
$VERSION = "1.11";
99
%IRSSI = (
1010
authors => 'Timo Sirainen & Jostein Kjønigsen',
1111
name => 'autoop',
@@ -98,10 +98,11 @@ sub load_autoops {
9898
%opnicks = ();
9999
open(CONF, "<", "$file") or return;
100100
while (my $line = <CONF>) {
101-
if ($line !=~ /^\s*$/) {
102-
cmd_autoop($line);
103-
$count++;
104-
}
101+
chomp($line);
102+
if ($line !~ /^\s*$/) {
103+
cmd_autoop($line);
104+
$count++;
105+
}
105106
}
106107
close(CONF);
107108

0 commit comments

Comments
 (0)