]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
* Missed DebianBugs.pl in the previous merge
[infobot.git] / src / DynaConfig.pl
index 1c3cad37c07d11474fe20d46cebd1c7ed80fe6e1..6f4de07d630bd587eecf5c5db428b5679028d094 100644 (file)
@@ -41,6 +41,9 @@ my @regFlagsUser = (
 
 sub readUserFile {
     my $f = "$bot_state_dir/infobot.users";
+    if (! -e $f and -e "$bot_state_dir/blootbot.users") {
+        $f = "$bot_state_dir/blootbot.users";
+    }
 
     if ( !-f $f ) {
         &DEBUG('userfile not found; new fresh run detected.');
@@ -274,6 +277,9 @@ sub writeUserFile {
 
 sub readChanFile {
     my $f = "$bot_state_dir/infobot.chan";
+    if (-e "$bot_state_dir/infobot.chan" and -e "$bot_state_dir/blootbot.chan") {
+        $f = "$bot_state_dir/blootbot.chan";
+    }
     if ( -f $f and -f "$f~" ) {
         my $s1 = -s $f;
         my $s2 = -s "$f~";