# HG changeset patch # User Teemu Piippo # Date 1418581456 -7200 # Node ID 77d02446edf083206a71eb99755db9be052afbdc # Parent 12e4ff8bb471167df92bedfca74873c172fa7124 - don't send empty messages diff -r 12e4ff8bb471 -r 77d02446edf0 sources/network/rconsession.cpp --- 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;