# HG changeset patch # User Teemu Piippo # Date 1469010543 -10800 # Node ID 8fb1c657e0b019a40e4ddb4e2750e5817dffa884 # Parent 966c09c34ae1abc22359e004629ee786f3dcb68e Removed the hardcoded /watch from RCONSession::send_command since it already exists in Interface::handle_command diff -r 966c09c34ae1 -r 8fb1c657e0b0 sources/interface.cpp --- a/sources/interface.cpp Wed Jul 20 13:25:54 2016 +0300 +++ b/sources/interface.cpp Wed Jul 20 13:29:03 2016 +0300 @@ -1106,7 +1106,7 @@ print_error("No CVars to watch.\n"); } else - print_error("Unknown command %s\n", command.chars()); + print_error("Unknown command: %s\n", command.chars()); } // ------------------------------------------------------------------------------------------------- diff -r 966c09c34ae1 -r 8fb1c657e0b0 sources/network/rconsession.cpp --- a/sources/network/rconsession.cpp Wed Jul 20 13:25:54 2016 +0300 +++ b/sources/network/rconsession.cpp Wed Jul 20 13:29:03 2016 +0300 @@ -370,18 +370,8 @@ return false; Bytestream packet; - - // Let's hardcode a /watch for CVar watching testing purposes - if (message.starts_with ("/watch ")) - { - request_watch(message.mid(String("/watch ").length(), -1).split(',')); - } - else - { - packet.write_byte (CLRC_COMMAND); - packet.write_string (message); - } - + packet.write_byte (CLRC_COMMAND); + packet.write_string (message); send (packet); bump_last_ping(); return true;