Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini

This commit is contained in:
Justin Clark-Casey (justincc)
2013-08-22 23:43:33 +01:00
parent 51c7fb1969
commit 70f89ae65b
2 changed files with 11 additions and 0 deletions

View File

@@ -82,6 +82,13 @@ namespace pCampBot
IConfigSource configSource = new IniConfigSource(iniFilePath);
IConfig botManagerConfig = configSource.Configs["BotManager"];
if (botManagerConfig != null)
{
bm.LoginDelay = botManagerConfig.GetInt("LoginDelay", bm.LoginDelay);
}
IConfig botConfig = configSource.Configs["Bot"];
if (botConfig != null)