summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index d790d292..3a22581f 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -341,6 +341,11 @@ void ChatWindow::chatSend(const std::string &nick, std::string msg)
* require server handling by proper packet. Probably
* those if elses should be replaced by protocol calls */
+ trim(msg);
+
+ if (msg.compare("") == 0)
+ return;
+
// Send party message
if (msg.at(0) == mPartyPrefix)
{