Fix bug 703
authorunc0rr
Mon, 09 Sep 2013 00:33:35 +0400
changeset 9454 ac1874d56057
parent 9452 a669869ee44c
child 9456 c08661d015c0
Fix bug #703
gameServer/HWProtoInRoomState.hs
--- 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