# HG changeset patch # User Wuzzy # Date 1568576893 -7200 # Node ID d9a12aba5c0568c252428209c23a5c16c331ccd0 # Parent 895b02e7856458fbdf8f80c8dd2c3d0d695a497d GameServer: Hide saveroom and loadroom command in non-official server Because those commands only work with OFFICIAL_SERVER diff -r 895b02e78564 -r d9a12aba5c05 gameServer/Actions.hs --- a/gameServer/Actions.hs Sun Sep 15 21:36:09 2019 +0200 +++ b/gameServer/Actions.hs Sun Sep 15 21:48:13 2019 +0200 @@ -870,8 +870,8 @@ processAction (CheckSuccess _) = return () processAction (QueryReplay _) = processAction $ Warning $ loc "This server does not support replays!" processAction (ShowReplay rname) = return () -processAction (SaveRoom rname) = return () -processAction (LoadRoom rname) = return () +processAction (SaveRoom rname) = return () -- TODO: Send warning that this command is unsupported +processAction (LoadRoom rname) = return () -- TODO: Send warning that this command is unsupported #endif processAction Cleanup = do diff -r 895b02e78564 -r d9a12aba5c05 gameServer/CommandHelp.hs --- a/gameServer/CommandHelp.hs Sun Sep 15 21:36:09 2019 +0200 +++ b/gameServer/CommandHelp.hs Sun Sep 15 21:48:13 2019 +0200 @@ -70,9 +70,12 @@ loc "/fix: Force this room to stay open when it is empty", loc "/unfix: Undo the /fix command", loc "/save : Add current room configuration as votable choice for /callvote map", - loc "/delete : Delete a votable room configuration", + loc "/delete : Delete a votable room configuration" +#if defined(OFFICIAL_SERVER) + , loc "/saveroom : Save all votable room configurations (and the greeting) of this room into a file", loc "/loadroom : Load votable room configurations (and greeting) from a file" +#endif ] cmdHelpHeaderLobby :: [B.ByteString]