diff options
-rw-r--r-- | OpenSim/Tools/pCampBot/pCampBot.cs | 7 | ||||
-rw-r--r-- | bin/pCampbot.ini.example | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index fc67398..aee5864 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs | |||
@@ -82,6 +82,13 @@ namespace pCampBot | |||
82 | 82 | ||
83 | IConfigSource configSource = new IniConfigSource(iniFilePath); | 83 | IConfigSource configSource = new IniConfigSource(iniFilePath); |
84 | 84 | ||
85 | IConfig botManagerConfig = configSource.Configs["BotManager"]; | ||
86 | |||
87 | if (botManagerConfig != null) | ||
88 | { | ||
89 | bm.LoginDelay = botManagerConfig.GetInt("LoginDelay", bm.LoginDelay); | ||
90 | } | ||
91 | |||
85 | IConfig botConfig = configSource.Configs["Bot"]; | 92 | IConfig botConfig = configSource.Configs["Bot"]; |
86 | 93 | ||
87 | if (botConfig != null) | 94 | if (botConfig != null) |
diff --git a/bin/pCampbot.ini.example b/bin/pCampbot.ini.example index f44feae..2952bb0 100644 --- a/bin/pCampbot.ini.example +++ b/bin/pCampbot.ini.example | |||
@@ -1,6 +1,10 @@ | |||
1 | ; This is the example config file for pCampbot | 1 | ; This is the example config file for pCampbot |
2 | ; To use it, copy this file to pCampbot.ini and change settings if required | 2 | ; To use it, copy this file to pCampbot.ini and change settings if required |
3 | 3 | ||
4 | [BotManager] | ||
5 | ; Number of milliseconds to wait between bot logins | ||
6 | LoginDelay = 5000 | ||
7 | |||
4 | [Bot] | 8 | [Bot] |
5 | ; Control whether bots should regularly send agent updates | 9 | ; Control whether bots should regularly send agent updates |
6 | ; Not doing this will reduce CPU requirements for pCampbot but greatly | 10 | ; Not doing this will reduce CPU requirements for pCampbot but greatly |