summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-05-30 14:56:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-05-30 14:56:32 +0000
commitd4e8401e55c7bc3f5c8545b66167e8c3bf3cd380 (patch)
tree812b13a931912f0d882e8c142444f92c974cdf03 /src/gui/chat.cpp
parent9f31058dbe774d84139c77332a6443151b66f5e6 (diff)
downloadmana-d4e8401e55c7bc3f5c8545b66167e8c3bf3cd380.tar.gz
mana-d4e8401e55c7bc3f5c8545b66167e8c3bf3cd380.tar.bz2
mana-d4e8401e55c7bc3f5c8545b66167e8c3bf3cd380.tar.xz
mana-d4e8401e55c7bc3f5c8545b66167e8c3bf3cd380.zip
Fixed handling of announce messages and private messages. Don't cut off the
last character from pm recipient's name. Got rid of old eAthena code (patch by rodge).
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")