diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 11:33:17 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 11:33:17 -0600 |
commit | 56c224050f10d976298cef98607aa3b3e56fcc99 (patch) | |
tree | 583146b7bc9ba8ae6caa639266445daa344d407c /src/commandhandler.cpp | |
parent | fc4a12470adde2502f37f22b86f58560e416f3e4 (diff) | |
download | mana-56c224050f10d976298cef98607aa3b3e56fcc99.tar.gz mana-56c224050f10d976298cef98607aa3b3e56fcc99.tar.bz2 mana-56c224050f10d976298cef98607aa3b3e56fcc99.tar.xz mana-56c224050f10d976298cef98607aa3b3e56fcc99.zip |
Rename the whisper tab creation commands
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
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 <nick> 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 <nick>")); - tab->chatLog(_("Command: /whispertab <nick>")); - tab->chatLog(_("Command: /wtab <nick>")); + tab->chatLog(_("Command: /query <nick>")); + tab->chatLog(_("Command: /q <nick>")); tab->chatLog(_("This command tries to make a tab for whispers between" "you and <nick>.")); } @@ -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; |