summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-09-26 05:44:45 +0000
committerIra Rice <irarice@gmail.com>2008-09-26 05:44:45 +0000
commit9ae618b143023609a1f085162ca935167677e1ca (patch)
tree77b90b630168e85d4fbb54e664429a1fe3d1a114 /src/gui/chat.cpp
parenta14a4fa368e91956a411337bf333451abd6b326a (diff)
downloadmana-client-9ae618b143023609a1f085162ca935167677e1ca.tar.gz
mana-client-9ae618b143023609a1f085162ca935167677e1ca.tar.bz2
mana-client-9ae618b143023609a1f085162ca935167677e1ca.tar.xz
mana-client-9ae618b143023609a1f085162ca935167677e1ca.zip
Made /msg an alias for /whisper.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 918b4dbe..316669c2 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -345,7 +345,7 @@ void ChatWindow::chatSend(const std::string & nick, std::string msg)
mTextOutput->clearRows();
return;
}
- if (command == "whisper") {
+ if (command == "whisper" || command == "msg") {
std::string recvnick = "";
if (msg.substr(0, 1) == "\"") {
@@ -704,7 +704,7 @@ void ChatWindow::help(const std::string & msg1, const std::string & msg2)
BY_SERVER);
return;
}
- if (msg1 == "whisper") {
+ if (msg1 == "whisper" || msg1 == "msg") {
chatLog("Command: /whisper <nick> <msg>", BY_SERVER);
chatLog("This command sends the message <msg> to <nick.", BY_SERVER);
chatLog("If the <nick> has spaces in it, enclose it in "