441 |
441 |
442 // ------------------------------------------------------------------------------------------------- |
442 // ------------------------------------------------------------------------------------------------- |
443 // |
443 // |
444 void RCONSession::requestWatch(const StringList& cvars) |
444 void RCONSession::requestWatch(const StringList& cvars) |
445 { |
445 { |
446 Vector<unsigned char> message; |
446 ByteArray message; |
447 Bytestream stream(message); |
447 Bytestream stream(message); |
448 stream.writeByte(CLRC_WATCHCVAR); |
448 stream.writeByte(CLRC_WATCHCVAR); |
449 |
449 |
450 for (const String& cvar : cvars) |
450 for (const String& cvar : cvars) |
451 stream.writeString(cvar.normalized()); |
451 stream.writeString(cvar.normalized()); |