diff options
Diffstat (limited to 'scripts/cron.pl')
| -rw-r--r-- | scripts/cron.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cron.pl b/scripts/cron.pl index bd8d127..9e1d125 100644 --- a/scripts/cron.pl +++ b/scripts/cron.pl @@ -256,7 +256,7 @@ sub cmd_jobadd { } sub cmd_jobssave { - if (not open (FILE, "> $savefile")) { + if (not open (FILE, ">", $savefile)) { Irssi::print("Could not open file '$savefile': $!"); return; } @@ -275,7 +275,7 @@ sub cmd_jobssave { } sub cmd_jobsload { - if (not open (FILE, "$savefile")) { + if (not open (FILE, q{<}, $savefile)) { Irssi::print("Could not open file '$savefile': $!"); return; } |
