diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-24 12:32:19 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-24 12:32:19 +0000 |
commit | 2debd445c71e65265359b6471795cab2cb2c7086 (patch) | |
tree | 695f276a3ae343f2a182dd2d3bb75afa6254f899 /src/net/chathandler.cpp | |
parent | 15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756 (diff) | |
download | mana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.gz mana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.bz2 mana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.xz mana-client-2debd445c71e65265359b6471795cab2cb2c7086.zip |
Added trimming of name for new character creation and of chat messages
appearing above players. Also improved resize mouse cursor indication, removing
duplicated code and fixing indicator above resize grip.
Diffstat (limited to 'src/net/chathandler.cpp')
-rw-r--r-- | src/net/chathandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp index 9095a4e1..c8f52e2b 100644 --- a/src/net/chathandler.cpp +++ b/src/net/chathandler.cpp @@ -36,6 +36,7 @@ #include "../gui/chat.h" #include "../utils/tostring.h" +#include "../utils/trim.h" extern Being *player_node; @@ -73,6 +74,7 @@ void ChatHandler::handleMessage(MessageIn *msg) chatMsg = msg->readString(chatMsgLength); chatWindow->chatLog(chatMsg, BY_OTHER); chatMsg.erase(0, chatMsg.find(" : ", 0) + 3); + trim(chatMsg); being->setSpeech(chatMsg, SPEECH_TIME); break; |