]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Files.pl
allow local reloads
[infobot.git] / src / Files.pl
index bfe79baba3768070397fc3b0b019fa56e16e3e75..d51cecd98d37bdc778c48806a9048d091bc40e1b 100644 (file)
@@ -5,7 +5,7 @@
 #  Created: 19991221
 #
 
-if (&IsParam("useStrict")) { use strict; }
+#use strict;
 
 # File: Language support.
 sub loadLang {
@@ -14,7 +14,7 @@ sub loadLang {
     my $replyName;
 
     if (!open(FILE, $file)) {
-       &ERROR("FAILED loadLang ($file): $!");
+       &ERROR("Failed reading lang file ($file): $!");
        exit 0;
     }
 
@@ -49,12 +49,12 @@ sub loadLang {
 
 # File: Irc Servers list.
 sub loadIRCServers {
-    my ($file) = @_;
+    my ($file) = $bot_config_dir."/blootbot.servers";
     @ircServers = ();
     %ircPort = ();
 
     if (!open(FILE, $file)) {
-       &ERROR("FAILED loadIRCServers ($file): $!");
+       &ERROR("Failed reading server list ($file): $!");
        exit 0;
     }