diff options
author | Justin Clark-Casey (justincc) | 2012-02-29 03:00:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-02-29 03:00:56 +0000 |
commit | a181fae72276073d7b3cd9c15e1448a3fabbb8f9 (patch) | |
tree | 6693fecceef23cc43548d48fc82b8066d6aa175b /OpenSim | |
parent | Use correct casing of RegionSettings.Sandbox in the various database modules. (diff) | |
download | opensim-SC-a181fae72276073d7b3cd9c15e1448a3fabbb8f9.zip opensim-SC-a181fae72276073d7b3cd9c15e1448a3fabbb8f9.tar.gz opensim-SC-a181fae72276073d7b3cd9c15e1448a3fabbb8f9.tar.bz2 opensim-SC-a181fae72276073d7b3cd9c15e1448a3fabbb8f9.tar.xz |
Don't start pCampbot if the user doesn't supply bot firstname, lastname stub and password
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Tools/pCampBot/pCampBot.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index a73fcbe..ec5ad04 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs | |||
@@ -56,6 +56,10 @@ namespace pCampBot | |||
56 | { | 56 | { |
57 | Help(); | 57 | Help(); |
58 | } | 58 | } |
59 | else if (config.Get("firstname") == null || config.Get("lastname") == null || config.Get("password") == null) | ||
60 | { | ||
61 | Console.WriteLine("ERROR: You must supply a firstname, lastname and password for the bots."); | ||
62 | } | ||
59 | else | 63 | else |
60 | { | 64 | { |
61 | int botcount = config.GetInt("botcount", 1); | 65 | int botcount = config.GetInt("botcount", 1); |