From: divverent Date: Sat, 3 Jan 2009 19:58:58 +0000 (+0000) Subject: fix cleanup of player names that use ^xRGB X-Git-Tag: xonotic-v0.1.0preview~1970 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0cee8e0c920102232b2560f6102ff6a3c2c111b4;p=xonotic%2Fdarkplaces.git fix cleanup of player names that use ^xRGB git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8622 d7cf8633-e32d-0410-b094-e92efae38249 --- 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++;