sources/network/rconsession.cpp

changeset 22
77d02446edf0
parent 21
12e4ff8bb471
child 23
f7221183a994
--- 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