Hide /watch command if OFFICIAL_SERVER is not set
authorWuzzy <Wuzzy2@mail.ru>
Sat, 25 Aug 2018 21:12:10 +0200
changeset 13704 e6523fe53d11
parent 13703 9b73f079e811
child 13705 feda0d1da62c
Hide /watch command if OFFICIAL_SERVER is not set
gameServer/CommandHelp.hs
--- a/gameServer/CommandHelp.hs	Sat Aug 25 21:00:26 2018 +0200
+++ b/gameServer/CommandHelp.hs	Sat Aug 25 21:12:10 2018 +0200
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  \-}
 
-{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE CPP, OverloadedStrings #-}
 module CommandHelp where
 
 import qualified Data.ByteString.Char8 as B
@@ -33,7 +33,9 @@
     loc "/me <message>: Chat action, e.g. '/me eats pizza' becomes '* Player eats pizza'",
     loc "/rnd: Flip a virtual coin and reply with 'heads' or 'tails'",
     loc "/rnd [A] [B] [C] [...]: Reply with a random word from the given list",
+#if defined(OFFICIAL_SERVER)
     loc "/watch <id>: Watch a demo stored on the server with the given ID",
+#endif
     loc "/help: Show chat command help"
     ]