mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user