]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/race.qc
Block anonymous records from the CTS leaderboard
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qc
index a3cbc685f2be9d3164ce3526d7932a9f962b7a54..a90ef8f95f8d74bb1fa9442051a1b6b908e31e9a 100644 (file)
@@ -285,6 +285,12 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e)
                return;
        }
 
+       if(uid2name(myuid) == "^1Unregistered Player")
+       {
+               Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_RACE_NEW_MISSING_NAME, mynetname, t);
+               return;
+       }
+
        oldrec = race_readTime(GetMapname(), newpos);
        oldrec_holder = race_readName(GetMapname(), newpos);