add enumeration of bots

This commit is contained in:
Chris Forbes
2010-12-21 18:13:38 +13:00
parent 7ef884532d
commit 29fbeb2c5d
4 changed files with 16 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ namespace OpenRA.Mods.RA.Server
{
var parts = s.Split(' ');
if (parts.Length != 2)
if (parts.Length < 2)
{
server.SendChatTo( conn, "Malformed slot_bot command" );
return true;
@@ -181,7 +181,7 @@ namespace OpenRA.Mods.RA.Server
return true;
}
slotData.Bot = parts[1];
slotData.Bot = string.Join(" ", parts.Skip(1).ToArray() );
server.SyncLobbyInfo();
return true;