# HG changeset patch # User Wuzzy # Date 1541255247 -3600 # Node ID 589a752c01ca214c1934c8b3371294266e4482c2 # Parent d6915d15b6de19ef2e2447b1a5bd82a2c0c11cef GameServer: Print syntax help if calling /maxteams without argument diff -r d6915d15b6de -r 589a752c01ca gameServer/HWProtoCore.hs --- a/gameServer/HWProtoCore.hs Sat Nov 03 15:17:46 2018 +0100 +++ b/gameServer/HWProtoCore.hs Sat Nov 03 15:27:27 2018 +0100 @@ -103,6 +103,7 @@ h "FORCE" msg | not $ B.null msg = handleCmd_roomOnly ["VOTE", upperCase msg, "FORCE"] | otherwise = handleCmd_roomOnly ["VOTE", "", "FORCE"] h "MAXTEAMS" n | not $ B.null n = handleCmd_roomOnly ["MAXTEAMS", n] + | otherwise = handleCmd_roomOnly ["MAXTEAMS"] -- lobby-only commands h "STATS" _ = handleCmd_lobbyOnly ["STATS"] diff -r d6915d15b6de -r 589a752c01ca gameServer/HWProtoInRoomState.hs --- a/gameServer/HWProtoInRoomState.hs Sat Nov 03 15:17:46 2018 +0100 +++ b/gameServer/HWProtoInRoomState.hs Sat Nov 03 15:27:27 2018 +0100 @@ -415,6 +415,8 @@ else return [ModifyRoom (\r -> r{teamsNumberLimit = m})] +handleCmd_inRoom ["MAXTEAMS"] = handleCmd_inRoom ["MAXTEAMS", ""] + handleCmd_inRoom ["FIX"] = serverAdminOnly $ return [ModifyRoom (\r -> r{isSpecial = True})]