diff options
| author | Obfuscoder | 2014-10-19 11:54:16 +0200 |
|---|---|---|
| committer | Obfuscoder | 2014-10-19 11:54:16 +0200 |
| commit | dd80027b51b3ee71027a2612595aee38e38c0d6e (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/quitmsg.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| download | scripts.irssi.org-dd80027b51b3ee71027a2612595aee38e38c0d6e.tar.bz2 | |
Fix perlcritic issues for all scripts starting with m to r
Diffstat (limited to 'scripts/quitmsg.pl')
| -rw-r--r-- | scripts/quitmsg.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/quitmsg.pl b/scripts/quitmsg.pl index 5fd4c6c..e289468 100644 --- a/scripts/quitmsg.pl +++ b/scripts/quitmsg.pl @@ -21,7 +21,7 @@ sub cmd_quit { my ($data, $server, $channel) = @_; return if ($data ne ""); - open (f, $quitfile) || return; + open (f, "<", $quitfile) || return; my $lines = 0; while(<f>) { $lines++; }; my $line = int(rand($lines))+1; |
