summaryrefslogtreecommitdiffstats
path: root/scripts/linkchan.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/linkchan.pl')
-rw-r--r--scripts/linkchan.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/linkchan.pl b/scripts/linkchan.pl
index 08476fa..34fb619 100644
--- a/scripts/linkchan.pl
+++ b/scripts/linkchan.pl
@@ -92,7 +92,7 @@ Irssi::command_bind "link list", sub
sub save_config()
{
- open CONFIG, ">$config";
+ open CONFIG, ">", $config;
foreach my $chatnet1 (keys %links)
{
foreach my $channel1 (keys %{$links{$chatnet1}})
@@ -113,7 +113,7 @@ Irssi::signal_add "setup saved", sub
sub load_config()
{
%links = ();
- open CONFIG, $config or return;
+ open CONFIG, "<", $config or return;
while (<CONFIG>)
{
chomp;