diff options
| author | David Leadbeater | 2015-01-10 17:50:12 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:50:12 +0000 |
| commit | 3350aef6b04f0d33ad52b41179c6742a98d2aa1f (patch) | |
| tree | 287ac1dba07509317309acab3161f5da286958e9 /scripts/linkchan.pl | |
| parent | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff) | |
| parent | 2d920d6f610e176bf121f9089f21956595df70e9 (diff) | |
| download | scripts.irssi.org-3350aef6b04f0d33ad52b41179c6742a98d2aa1f.tar.bz2 | |
Merge branch 'obfuscoder-perlcritic-e-l' into gh-pages
Diffstat (limited to 'scripts/linkchan.pl')
| -rw-r--r-- | scripts/linkchan.pl | 4 |
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; |
