summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index a7248b3f..3748b31c 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -338,9 +338,8 @@ void ChatWindow::chatSend(std::string const &nick, std::string const &msg,
else if (command == "msg")
{
std::string::size_type pos = arg.find(' ', 1);
- std::string recipient(arg, 0, pos-1);
+ std::string recipient(arg, 0, pos);
std::string text(arg, pos+1);
- chatLog("* " + text, BY_SERVER);
Net::ChatServer::privMsg(recipient, text);
}
else if (command == "register")