Sun, 14 Dec 2014 20:24:16 +0200
- 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;