summaryrefslogtreecommitdiffstats
path: root/scripts/findbot.pl
diff options
context:
space:
mode:
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 {