summaryrefslogtreecommitdiffstats
path: root/scripts/iMPD.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/iMPD.pl')
-rw-r--r--scripts/iMPD.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/iMPD.pl b/scripts/iMPD.pl
index 945a1bf..6078e55 100644
--- a/scripts/iMPD.pl
+++ b/scripts/iMPD.pl
@@ -262,7 +262,7 @@ sub addShufflePlay {
sub cleanup {
my ($file) = Irssi::get_irssi_dir."/iMPD.conf";
- open CONF, "> $file";
+ open CONF, ">", $file;
for my $net (sort keys %SAVE_VARS) {
print CONF "$net\t$SAVE_VARS{$net}\n";
close CONF;
@@ -489,7 +489,7 @@ print $mpd_help_advanced;
sub load_settings {
my ($file) = Irssi::get_irssi_dir."/iMPD.conf";
- open CONF, "< $file";
+ open CONF, "<", $file;
while (<CONF>) {
my($net,$val) = split;
if ($net && $val) {