]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/common.qh
Add color code handling to GetClientErrorString (example command where it gets called...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / common.qh
index 2a03041d90a56d373b98b36943cc28c9448f1d3e..ac99e32dc46d2583a677e3d687d6a067dde510ee 100644 (file)
@@ -58,7 +58,8 @@ float VerifyKickableEntity(entity client);
 float VerifyClientEntity(entity client, float must_be_real, float must_be_bots);
 
 // if the client is not acceptable, return a string to be used for error messages
-string GetClientErrorString(float clienterror, string original_input);
+string GetClientErrorString_color(float clienterror, string original_input, string col);
+#define GetClientErrorString(clienterror,original_input) GetClientErrorString_color(clienterror,original_input,"^7")
 
 // is this entity number even in the possible range of entities?
 float VerifyClientNumber(float tmp_number);