- don't send empty messages

Sun, 14 Dec 2014 20:24:16 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 14 Dec 2014 20:24:16 +0200
changeset 22
77d02446edf0
parent 21
12e4ff8bb471
child 23
f7221183a994

- don't send empty messages

sources/network/rconsession.cpp file | annotate | diff | comparison | revisions
--- a/sources/network/rconsession.cpp	Sun Dec 14 20:24:02 2014 +0200
+++ b/sources/network/rconsession.cpp	Sun Dec 14 20:24:16 2014 +0200
@@ -263,7 +263,7 @@
 METHOD
 RCONSession::send_command (const String& message) -> bool
 {
-	if (m_state != RCON_CONNECTED)
+	if (m_state != RCON_CONNECTED or message.is_empty())
 		return false;
 
 	Bytestream packet;

mercurial