From eb1bc315228f9b06a7c973ca722cf764b69b3007 Mon Sep 17 00:00:00 2001 From: Kess Vargavind Date: Thu, 12 Feb 2009 08:48:11 +0100 Subject: Describe the /me command in chat help Also a few whitespace and spelling fixes. --- src/gui/chat.cpp | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'src/gui') diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 48b49248..b6fb7577 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -370,14 +370,15 @@ void ChatWindow::chatSend(const std::string &nick, std::string msg) return; } - // check for item link + // Check for item link std::string::size_type start = msg.find('['); while (start != std::string::npos && msg[start+1] != '@') { std::string::size_type end = msg.find(']', start); if (start+1 != end && end != std::string::npos) { - // Catch multiple embeds and ignore them so it doesn't crash the client. + // Catch multiple embeds and ignore them + // so it doesn't crash the client. while ((msg.find('[', start + 1) != std::string::npos) && (msg.find('[', start + 1) < end)) { @@ -664,7 +665,7 @@ std::string ChatWindow::const_msg(CHATSKILL act) msg += _("You cannot do that right now!"); break; case RFAIL_ZENY: - msg += _("Seems you need more Zeny... ;-)"); + msg += _("Seems you need more GP... ;-)"); break; case RFAIL_WEAPON: msg += _("You cannot use this skill with that kind of weapon!"); @@ -809,17 +810,19 @@ void ChatWindow::help(const std::string & msg1, const std::string & msg2) chatLog(_("/announce: Global announcement (GM only)"), BY_SERVER); chatLog(_("/clear: Clears this window"), BY_SERVER); chatLog(_("/help: Display this help"), BY_SERVER); - chatLog(_("/party : Party commands."), BY_SERVER); - chatLog(_("/msg : Alternate form for /whisper"), BY_SERVER); + chatLog(_("/me : Tell something about yourself"), BY_SERVER); + chatLog(_("/msg : Alternate form for /whisper"), + BY_SERVER); + chatLog(_("/party : Party commands"), BY_SERVER); chatLog(_("/present: Get list of players present"), BY_SERVER); - chatLog(_("/record : Start recording the chat to an" - " external file."), BY_SERVER); - chatLog(_("/toggle: Determine whether toggles the chat log."), + chatLog(_("/record : Start recording the chat to an " + "external file"), BY_SERVER); + chatLog(_("/toggle: Determine whether toggles the chat log"), BY_SERVER); - chatLog(_("/where: Display map name"), BY_SERVER); chatLog(_("/w : Short form for /whisper"), BY_SERVER); - chatLog(_("/whisper : Sends a private " - " to "), BY_SERVER); + chatLog(_("/where: Display map name"), BY_SERVER); + chatLog(_("/whisper : Sends a private " + "to "), BY_SERVER); chatLog(_("/who: Display number of online users"), BY_SERVER); chatLog(_("For more information, type /help "), BY_SERVER); } @@ -844,6 +847,12 @@ void ChatWindow::help(const std::string & msg1, const std::string & msg2) chatLog(_("Command: /help "), BY_SERVER); chatLog(_("This command displays help on ."), BY_SERVER); } + else if (msg1 == "me") + { + chatLog(_("Command: /me "), BY_SERVER); + chatLog(_("This command tell others you are (doing) ."), + BY_SERVER); + } else if (msg1 == "party") { mParty->help(msg2); @@ -866,14 +875,15 @@ void ChatWindow::help(const std::string & msg1, const std::string & msg2) else if (msg1 == "toggle") { chatLog(_("Command: /toggle "), BY_SERVER); - chatLog(_("This command sets whether the return key should toggle the" + chatLog(_("This command sets whether the return key should toggle the " "chat log, or whether the chat log turns off automatically."), BY_SERVER); chatLog(_(" can be one of \"1\", \"yes\", \"true\" to " "turn the toggle on, or \"0\", \"no\", \"false\" to turn the " "toggle off."), BY_SERVER); chatLog(_("Command: /toggle"), BY_SERVER); - chatLog(_("This command displays the return toggle status."), BY_SERVER); + chatLog(_("This command displays the return toggle status."), + BY_SERVER); } else if (msg1 == "where") { -- cgit v1.2.3-70-g09d2