summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-22 20:42:35 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-22 20:42:35 +0000
commitaed1ad6210fa1ed0a70da5d87082cedff0bd516a (patch)
tree42deb89d76a9a2d1a9b6940bf27203fb3049f98b /src/net
parent700b390ee8cf1ab9468999d1c10188da65e5fb51 (diff)
downloadmana-aed1ad6210fa1ed0a70da5d87082cedff0bd516a.tar.gz
mana-aed1ad6210fa1ed0a70da5d87082cedff0bd516a.tar.bz2
mana-aed1ad6210fa1ed0a70da5d87082cedff0bd516a.tar.xz
mana-aed1ad6210fa1ed0a70da5d87082cedff0bd516a.zip
Make sure chat messages are also trimmed for the local player.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/chathandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp
index c8f52e2b..dbbb84a5 100644
--- a/src/net/chathandler.cpp
+++ b/src/net/chathandler.cpp
@@ -98,6 +98,7 @@ void ChatHandler::handleMessage(MessageIn *msg)
{
chatMsg.erase(0, pos + 3);
}
+ trim(chatMsg);
player_node->setSpeech(chatMsg, SPEECH_TIME);
}
else