From fe83e01c40e95d5cc407872f60ff6cd8a069b2db Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 1 Apr 2011 15:44:20 +0200 Subject: [PATCH] send a "R" line in the player stats POST that is the current version string --- qcsrc/server/playerstats.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index c5ba3b013..09c042356 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -149,6 +149,7 @@ void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data) The following keys are defined: V: format version (always 1) + R: release information on the server T: time at which the game ended G: game type M: map name @@ -190,6 +191,7 @@ void PlayerStats_Shutdown() db_dump(playerstats_db, "foo.db"); bufstr_set(b, i++, "V 1"); + bufstr_set(b, i++, sprintf("R %s", WATERMARK())); bufstr_set(b, i++, sprintf("T %s.%06d", strftime(FALSE, "%s"), floor(random() * 1000000))); bufstr_set(b, i++, sprintf("G %s", GetGametype())); bufstr_set(b, i++, sprintf("M %s", GetMapname())); -- 2.39.2