X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FDynaConfig.pl;h=9fa01ddd57fe6ca88eb9ad7a21c1a081c28b4600;hb=58298d359360a1de27212a1ec0838dbfb7f0b53b;hp=e1acb4d3e3e46e351a344bf77d3a43751c5b5312;hpb=b6accd0ec31c9e167c396b7d6db73ce9d47815ad;p=infobot.git diff --git a/src/DynaConfig.pl b/src/DynaConfig.pl index e1acb4d..9fa01dd 100644 --- a/src/DynaConfig.pl +++ b/src/DynaConfig.pl @@ -15,6 +15,11 @@ if (&IsParam("useStrict")) { use strict; } sub readUserFile { my $f = "$bot_misc_dir/blootbot.users"; + if (! -f $f) { + &DEBUG("userfile not found; new fresh run detected."); + return; + } + if ( -f $f and -f "$f~") { my $s1 = -s $f; my $s2 = -s "$f~";