diff options
Diffstat (limited to 'scripts/randname.pl')
| -rw-r--r-- | scripts/randname.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/randname.pl b/scripts/randname.pl index b474c6a..388a78b 100644 --- a/scripts/randname.pl +++ b/scripts/randname.pl @@ -22,7 +22,7 @@ sub randname { my $namefile = glob Irssi::settings_get_str('random_realname_file'); - open (FILE, $namefile) || return; + open (FILE, "<", $namefile) || return; my $lines = 0; while(<FILE>) { $lines++; }; my $line = int(rand($lines))+1; |
