summaryrefslogtreecommitdiffstats
path: root/scripts/findbot.pl
diff options
context:
space:
mode:
authorObfuscoder2014-10-17 22:54:13 +0200
committerObfuscoder2014-10-19 10:28:41 +0200
commitd84f1e1808b3252af83e4963eccfd1e4f19c5326 (patch)
tree18b64164a95e6ba73e50d4ce9938e9760ad8a217 /scripts/findbot.pl
parent263a56d196da657b72ccf2b195b50008d6a988dc (diff)
downloadscripts.irssi.org-d84f1e1808b3252af83e4963eccfd1e4f19c5326.tar.bz2
Fix perlcritic issues for all scripts starting with e to l
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 {