sources/network/rconsession.cpp

branch
protocol5
changeset 136
8fb1c657e0b0
parent 131
4996c8684b93
child 141
d9073c13dc98
--- 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;

mercurial