summaryrefslogtreecommitdiffstats
path: root/scripts/findbot.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:49:34 +0000
committerDavid Leadbeater2015-01-10 17:49:34 +0000
commit2d920d6f610e176bf121f9089f21956595df70e9 (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/findbot.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parentd84f1e1808b3252af83e4963eccfd1e4f19c5326 (diff)
downloadscripts.irssi.org-2d920d6f610e176bf121f9089f21956595df70e9.tar.bz2
Merge branch 'perlcritic-e-l' of git://github.com/obfuscoder/scripts.irssi.org into obfuscoder-perlcritic-e-l
Conflicts: scripts/eng_no_translate_dpryo.pl
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 {