diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index b6fb7577..22126af3 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -117,12 +117,14 @@ void ChatWindow::chatLog(std::string line, int own, bool ignoreRecord) // Trim whitespace trim(line); + if (line.empty()) + return; + CHATLOG tmp; tmp.own = own; tmp.nick = ""; tmp.text = line; - std::string::size_type pos = line.find(" : "); if (pos != std::string::npos) { |