gameServer/HWProtoLobbyState.hs
changeset 2150 45b695f3a7b9
parent 2126 cb249fa8e3da
child 2155 d897222d3339
--- a/gameServer/HWProtoLobbyState.hs	Sat Jun 06 12:42:35 2009 +0000
+++ b/gameServer/HWProtoLobbyState.hs	Sun Jun 07 07:42:40 2009 +0000
@@ -44,6 +44,8 @@
 handleCmd_lobby clID clients rooms ["CREATE_ROOM", newRoom, roomPassword] =
 	if haveSameRoom then
 		[Warning "Room exists"]
+	else if illegalName newRoom then
+		[Warning "Illegal room name"]
 	else
 		[RoomRemoveThisClient "", -- leave lobby
 		AddRoom newRoom roomPassword,