GameServer: Hide saveroom and loadroom command in non-official server
authorWuzzy <Wuzzy2@mail.ru>
Sun, 15 Sep 2019 21:48:13 +0200
changeset 15408 d9a12aba5c05
parent 15407 895b02e78564
child 15409 330a2d7d520d
GameServer: Hide saveroom and loadroom command in non-official server Because those commands only work with OFFICIAL_SERVER
gameServer/Actions.hs
gameServer/CommandHelp.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
--- 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 <config ID> <config name>: Add current room configuration as votable choice for /callvote map",
-    loc "/delete <config ID>: Delete a votable room configuration",
+    loc "/delete <config ID>: Delete a votable room configuration"
+#if defined(OFFICIAL_SERVER)
+    ,
     loc "/saveroom <file name>: Save all votable room configurations (and the greeting) of this room into a file",
     loc "/loadroom <file name>: Load votable room configurations (and greeting) from a file"
+#endif
     ]
 
 cmdHelpHeaderLobby :: [B.ByteString]