From 56c224050f10d976298cef98607aa3b3e56fcc99 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 15 Apr 2009 11:33:17 -0600 Subject: Rename the whisper tab creation commands --- src/commandhandler.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 9b8c037b..d507048c 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -68,9 +68,9 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) { handleMsg(args, tab); } - else if (type == "msgtab" || type == "whispertab" || type == "wt") + else if (type == "query" || type == "q") { - handleMsgTab(args, tab); + handleQuery(args, tab); } else if (type == "join") { @@ -149,9 +149,8 @@ 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(_("/msgtab > Makes a tab for private messages with another user")); - tab->chatLog(_("/whispertab > Alias of msgtab")); - tab->chatLog(_("/wt > Alias of msgtab")); + tab->chatLog(_("/query > Makes a tab for private messages with another user")); + tab->chatLog(_("/q > Alias of query")); tab->chatLog(_("/close > Close the whisper tab (only works in whisper tabs)")); #ifdef TMWSERV_SUPPORT @@ -226,11 +225,10 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) tab->chatLog(_("If the has spaces in it, enclose it in " "double quotes (\").")); } - else if (args == "msgtab" || args == "whispertab" || args == "wt") + else if (args == "query" || args == "q") { - tab->chatLog(_("Command: /msgtab ")); - tab->chatLog(_("Command: /whispertab ")); - tab->chatLog(_("Command: /wtab ")); + tab->chatLog(_("Command: /query ")); + tab->chatLog(_("Command: /q ")); tab->chatLog(_("This command tries to make a tab for whispers between" "you and .")); } @@ -371,7 +369,7 @@ void CommandHandler::handleMsg(const std::string &args, ChatTab *tab) tab->chatLog(_("Cannont send empty whispers!"), BY_SERVER); } -void CommandHandler::handleMsgTab(const std::string &args, ChatTab *tab) { +void CommandHandler::handleQuery(const std::string &args, ChatTab *tab) { if (chatWindow->addWhisperTab(args)) return; -- cgit v1.2.3-70-g09d2