summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();