gameServer/HWProtoInRoomState.hs
changeset 2408 41ebdb5f1e6e
parent 2403 6c5d504af2ba
child 2747 7889a3a9724f
--- a/gameServer/HWProtoInRoomState.hs	Wed Oct 07 14:37:42 2009 +0000
+++ b/gameServer/HWProtoInRoomState.hs	Wed Oct 07 17:01:40 2009 +0000
@@ -34,6 +34,7 @@
 
 
 handleCmd_inRoom clID clients rooms ("CFG" : paramName : paramStrs)
+	| null paramStrs = [ProtocolError "Empty config entry"]
 	| isMaster client =
 		[ModifyRoom (\r -> r{params = Map.insert paramName paramStrs (params r)}),
 		AnswerOthersInRoom ("CFG" : paramName : paramStrs)]