gameServer/HWProtoInRoomState.hs
changeset 9454 ac1874d56057
parent 9304 3f4c3fc146c2
child 9521 8054d9d775fd
child 9702 27006953d901
--- a/gameServer/HWProtoInRoomState.hs	Tue Sep 03 18:07:17 2013 -0400
+++ b/gameServer/HWProtoInRoomState.hs	Mon Sep 09 00:33:35 2013 +0400
@@ -287,6 +287,9 @@
         if not $ isMaster cl then
             [ProtocolError $ loc "Not room master"]
         else
+        if illegalName newName then 
+            [Warning $ loc "Illegal room name"]
+        else
         if isJust $ find (\r -> newName == name r) rs then
             [Warning $ loc "Room with such name already exists"]
         else