Don't start pCampbot if the user doesn't supply bot firstname, lastname stub and password

0.7.3-post-fixes
Justin Clark-Casey (justincc) 2012-02-29 03:00:56 +00:00
parent 1750fba9ce
commit 25c29db8b6
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ namespace pCampBot
{
Help();
}
else if (config.Get("firstname") == null || config.Get("lastname") == null || config.Get("password") == null)
{
Console.WriteLine("ERROR: You must supply a firstname, lastname and password for the bots.");
}
else
{
int botcount = config.GetInt("botcount", 1);