Don't start pCampbot if the user doesn't supply bot firstname, lastname stub and password
parent
1750fba9ce
commit
25c29db8b6
|
@ -56,6 +56,10 @@ namespace pCampBot
|
||||||
{
|
{
|
||||||
Help();
|
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
|
else
|
||||||
{
|
{
|
||||||
int botcount = config.GetInt("botcount", 1);
|
int botcount = config.GetInt("botcount", 1);
|
||||||
|
|
Loading…
Reference in New Issue