gameServer/HWProtoInRoomState.hs
branchspacecampaign
changeset 9646 7588daa8d28f
parent 9454 ac1874d56057
child 9521 8054d9d775fd
child 9702 27006953d901
--- a/gameServer/HWProtoInRoomState.hs	Sun Sep 22 18:34:53 2013 +0300
+++ b/gameServer/HWProtoInRoomState.hs	Wed Sep 25 05:42:16 2013 +0300
@@ -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