From 22799314e68a0535f65cc7aa56c490cdde7ca544 Mon Sep 17 00:00:00 2001
From: Bjørn Lindeijer <bjorn@lindeijer.nl>
Date: Sat, 30 Apr 2005 09:11:23 +0000
Subject: Updated change log and made little fix.

---
 src/gui/chat.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

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();
-- 
cgit v1.2.3-70-g09d2