summaryrefslogtreecommitdiffstats
path: root/scripts/quitmsg.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/quitmsg.pl')
-rw-r--r--scripts/quitmsg.pl2
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;