X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FDynaConfig.pl;h=6f4de07d630bd587eecf5c5db428b5679028d094;hb=73beb60bc23bd62af55be0c685cbdc4a04005fb8;hp=1c3cad37c07d11474fe20d46cebd1c7ed80fe6e1;hpb=204fd7531aba4f893ac45c94d04c24ffb0643445;p=infobot.git diff --git a/src/DynaConfig.pl b/src/DynaConfig.pl index 1c3cad3..6f4de07 100644 --- a/src/DynaConfig.pl +++ b/src/DynaConfig.pl @@ -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~";