diff options
-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 |