From 93d4de19fdffb6d568c907729449f169c3520c7b Mon Sep 17 00:00:00 2001 From: Bertram Date: Thu, 22 Apr 2010 23:55:44 +0200 Subject: Add documentation for the /away command. Reviewed by Jaxad0127 --- src/commandhandler.cpp | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 80a3b99f..dab51c8f 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -169,9 +169,13 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) tab->chatLog(_("/msg > Send a private message to a user")); tab->chatLog(_("/whisper > Alias of msg")); tab->chatLog(_("/w > Alias of msg")); - tab->chatLog(_("/query > Makes a tab for private messages with another user")); + tab->chatLog(_("/query > Makes a tab for private messages " + "with another user")); tab->chatLog(_("/q > Alias of query")); + tab->chatLog(_("/away > Tell the other whispering players " + "you're away from keyboard.")); + tab->chatLog(_("/ignore > ignore a player")); tab->chatLog(_("/unignore > stop ignoring a player")); @@ -181,9 +185,12 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) tab->chatLog(_("/createparty > Create a new party")); tab->chatLog(_("/party > Invite a user to party")); - tab->chatLog(_("/record > Start recording the chat to an external file")); - tab->chatLog(_("/toggle > Determine whether toggles the chat log")); - tab->chatLog(_("/present > Get list of players present (sent to chat log, if logging)")); + tab->chatLog(_("/record > Start recording the chat " + "to an external file")); + tab->chatLog(_("/toggle > Determine whether " + "toggles the chat log")); + tab->chatLog(_("/present > Get list of players present " + "(sent to chat log, if logging)")); tab->chatLog(_("/announce > Global announcement (GM only)")); @@ -194,7 +201,8 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) else if (args == "help") // Do this before tabs so they can't change it { tab->chatLog(_("Command: /help")); - tab->chatLog(_("This command displays a list of all commands available.")); + tab->chatLog(_("This command displays a list " + "of all commands available.")); tab->chatLog(_("Command: /help ")); tab->chatLog(_("This command displays help on .")); } @@ -252,6 +260,14 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) tab->chatLog(_("This command tries to make a tab for whispers between" "you and .")); } + else if (args == "away") + { + tab->chatLog(_("Command: /away ")); + tab->chatLog(_("This command tells " + "you're away from keyboard with the given reason.")); + tab->chatLog(_("Command: /away")); + tab->chatLog(_("This command clears the away status and message.")); + } else if (args == "createparty") { tab->chatLog(_("Command: /createparty ")); -- cgit v1.2.3-70-g09d2