# HG changeset patch # User Wuzzy # Date 1535224330 -7200 # Node ID e6523fe53d1127e9f300696c2c3c7e8fc82569e2 # Parent 9b73f079e811cd52fd139474239ca9004976f621 Hide /watch command if OFFICIAL_SERVER is not set diff -r 9b73f079e811 -r e6523fe53d11 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 : 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 : Watch a demo stored on the server with the given ID", +#endif loc "/help: Show chat command help" ]