From 0cee8e0c920102232b2560f6102ff6a3c2c111b4 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 3 Jan 2009 19:58:58 +0000 Subject: [PATCH] fix cleanup of player names that use ^xRGB git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8622 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host_cmd.c b/host_cmd.c index b80cf563..9c497916 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1020,6 +1020,12 @@ void Host_Name_f (void) i++; continue; } + if (host_client->name[i+1] == STRING_COLOR_RGB_DEFAULT && isxdigit(host_client->name[i+2]) && isxdigit(host_client->name[i+3]) && isxdigit(host_client->name[i+4])) + { + j = i; + i += 4; + continue; + } if (host_client->name[i+1] == STRING_COLOR_TAG) { i++; -- 2.39.2