diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-22 20:42:35 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-12-22 20:42:35 +0000 |
commit | aed1ad6210fa1ed0a70da5d87082cedff0bd516a (patch) | |
tree | 42deb89d76a9a2d1a9b6940bf27203fb3049f98b | |
parent | 700b390ee8cf1ab9468999d1c10188da65e5fb51 (diff) | |
download | mana-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.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/net/chathandler.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,8 @@ * src/winver.h, README, configure.ac, INSTALL, data/help/header.txt, NEWS, CMakeLists.txt: Updated version to 0.0.24. + * src/net/chathandler.cpp, NEWS: Make sure chat messages are also + trimmed for the local player. 2007-12-21 David Athay <ko2fan@gmail.com> @@ -13,6 +13,7 @@ - Made buy and sell dialogs resizable - Merged equipment database with items database - Chat window log no longer goes back forever +- Chat messages are trimmed (spaces are removed on both sides) - Fixed segmentation fault with some OpenGL drivers - Fixed updating of defense when increasing vitality - Fixed a bug that prevented being-controlled particles from being deleted 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 |