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

xassetservice
Justin Clark-Casey (justincc) 2012-02-29 03:00:56 +00:00
parent 40c838896c
commit a181fae722
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);