]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
- another round of patches from lear. "we love you, lear!" j/k :o
[infobot.git] / src / DynaConfig.pl
index b64ba0b24183f182d12ccd97d5dbc2426bfdd815..d90f6fafd8f7be28cda8f7ea80a4164bf62ea491 100644 (file)
@@ -13,7 +13,7 @@ if (&IsParam("useStrict")) { use strict; }
 #####
 
 sub readUserFile {
-    my $f = "$bot_misc_dir/blootbot.users";
+    my $f = "$bot_state_dir/blootbot.users";
 
     if (! -f $f) {
        &DEBUG("userfile not found; new fresh run detected.");
@@ -122,7 +122,7 @@ sub writeUserFile {
        return;
     }
 
-    if (!open OUT,">$bot_misc_dir/blootbot.users") {
+    if (!open OUT,">$bot_state_dir/blootbot.users") {
        &ERROR("cannot write to userfile.");
        return;
     }
@@ -226,7 +226,7 @@ sub writeUserFile {
 #####
 
 sub readChanFile {
-    my $f = "$bot_misc_dir/blootbot.chan";
+    my $f = "$bot_state_dir/blootbot.chan";
     if ( -f $f and -f "$f~") {
        my $s1 = -s $f;
        my $s2 = -s "$f~";
@@ -297,7 +297,7 @@ sub writeChanFile {
        return;
     }
 
-    if (!open OUT,">$bot_misc_dir/blootbot.chan") {
+    if (!open OUT,">$bot_state_dir/blootbot.chan") {
        &ERROR("cannot write chanfile.");
        return;
     }