summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--NEWS1
-rw-r--r--src/net/chathandler.cpp1
3 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 91e5d48c..0822fc7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/NEWS b/NEWS
index 9ec2959b..5c84a0d3 100644
--- a/NEWS
+++ b/NEWS
@@ -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