summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-30 09:11:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-30 09:11:23 +0000
commit22799314e68a0535f65cc7aa56c490cdde7ca544 (patch)
treed1335e4461936285515c2fa01b307b5647b6f01b /src/gui/chat.cpp
parentb7dfc4d660d3ad930610c4f6af35d8e916a7feb8 (diff)
downloadmana-client-22799314e68a0535f65cc7aa56c490cdde7ca544.tar.gz
mana-client-22799314e68a0535f65cc7aa56c490cdde7ca544.tar.bz2
mana-client-22799314e68a0535f65cc7aa56c490cdde7ca544.tar.xz
mana-client-22799314e68a0535f65cc7aa56c490cdde7ca544.zip
Updated change log and made little fix.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index a193a5e7..49841623 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -213,7 +213,7 @@ void ChatWindow::action(const std::string& eventId)
std::string message = chatInput->getText();
if (message.length() > 0) {
- if (message != history.back()) {
+ if (history.size() == 0 || message != history.back()) {
history.push_back(message);
}
curHist = history.end();