# HG changeset patch # User unc0rr # Date 1378672415 -14400 # Node ID ac1874d560574858f42b1af20cb9d77d1b137b9c # Parent a669869ee44c3d8dfbf855e90343613e7c9722e3 Fix bug 703 diff -r a669869ee44c -r ac1874d56057 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