summaryrefslogtreecommitdiffstats
path: root/scripts/findbot.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:50:12 +0000
committerDavid Leadbeater2015-01-10 17:50:12 +0000
commit3350aef6b04f0d33ad52b41179c6742a98d2aa1f (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/findbot.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parent2d920d6f610e176bf121f9089f21956595df70e9 (diff)
downloadscripts.irssi.org-3350aef6b04f0d33ad52b41179c6742a98d2aa1f.tar.bz2
Merge branch 'obfuscoder-perlcritic-e-l' into gh-pages
Diffstat (limited to 'scripts/findbot.pl')
-rw-r--r--scripts/findbot.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/findbot.pl b/scripts/findbot.pl
index 9f79259..fdddfe0 100644
--- a/scripts/findbot.pl
+++ b/scripts/findbot.pl
@@ -347,9 +347,9 @@ sub debugprint {
$win->set_name($IRSSI{name}); # Select the window
$win->print($debugmessage,MSGLEVEL_CLIENTCRAP);
my $debugtid = localtime(time);
- open (LOGFILE,">> $logfile");
- print LOGFILE "$debugtid: $debugmessage\n";
- close (LOGFILE);
+ open (LOGFILE,">>", $logfile);
+ print LOGFILE "$debugtid: $debugmessage\n";
+ close (LOGFILE);
}
}
@@ -583,7 +583,7 @@ sub admin_activesends {
sub admin_reload {
if ( -r Irssi::settings_get_str('findbot_summaryfile') ) {
- open (FINDFILE,Irssi::settings_get_str('findbot_summaryfile')); # Open the file
+ open (FINDFILE, "<", Irssi::settings_get_str('findbot_summaryfile')); # Open the file
@bigarray = <FINDFILE>; # Load it whole into memory :)
close (FINDFILE);
debugprint(10,"[ADMIN] Summary file has been reloaded into memory.");
@@ -841,7 +841,7 @@ Irssi::command_bind('findbotactivesends', 'admin_activesends');
check_vital_configuration(); # Run a subroutine to check all variables before starting
if ( -r Irssi::settings_get_str('findbot_summaryfile') ) {
- open (FINDFILE,Irssi::settings_get_str('findbot_summaryfile')); # Open the file
+ open (FINDFILE, "<", Irssi::settings_get_str('findbot_summaryfile')); # Open the file
@bigarray = <FINDFILE>; # Load it whole into memory :)
close (FINDFILE);
} else {