Document the new say and whisper commands
authorCarl Worth <cworth@cworth.org>
Tue, 19 Feb 2008 19:45:40 +0000 (11:45 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 19 Feb 2008 19:45:40 +0000 (11:45 -0800)
lg-loa.c
lg-set.c
loudgame.h

index 61e635124c5c591a6135f8e030668b92cef5431f..f6a8f4c182e10811b093ed1bf5651fe09779463f 100644 (file)
--- a/lg-loa.c
+++ b/lg-loa.c
@@ -524,7 +524,10 @@ loa_game_handle_help (loa_game_t *game, const char *peer)
 {
     loudgame_sendf (&game->lg, peer,
                    "I'm a bot that allows you to play the game Lines of Action.\n"
-                   "Here are some commands I understand:\n"
+                   "Here are some generic commands I understand:\n"
+                   LOUDGAME_HELP
+                   "\n"
+                   "And some game-specific commands:\n"
                    "\tshow     \t\tShow the current board\n"
                    "\tmove aNbN\tMove a piece, (eg. 'move b1d3')\n"
                    "\tpass     \t\tSkip a turn (only legal if no moves are possible)\n"
index a6594b27a3de4bc9ad9a621f68755f97e9a985ec..0584edac1c1181bcac9a4f5eb8ac14e9dc4bcd11 100644 (file)
--- a/lg-set.c
+++ b/lg-set.c
@@ -449,7 +449,10 @@ set_game_handle_help (set_game_t *game,
 {
     loudgame_sendf (&game->lg, peer,
                    "I'm a bot that allows you to play the game of SET.\n"
-                   "Here are some commands I understand:\n"
+                   "Here are some generic commands I understand:\n"
+                   LOUDGAME_HELP
+                   "\n"
+                   "And some game-specific commands:\n"
                    "\tshow     \tShow the current cards on the board\n"
                    "\thint     \tIndicate how many sets are currently possible\n"
                    "\tshuffle  \tReturn the cards to the deck, shuffle and deal\n"
index c899727eb0a5220a29145f1613b827695b02a346..08f4b499b48956046f59af632b92c727da9b4838 100644 (file)
@@ -44,6 +44,10 @@ struct _loudgame {
     handle_message_cb   handle_message;
 };
 
+#define LOUDGAME_HELP                                                          \
+"\tsay message         \t\tSay 'message' to everyone in the current game\n"    \
+"\twhisper user message\tSay 'message' to 'user' only\n"
+
 int
 loudgame_init (loudgame_t *lg, int argc, char **argv);