]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix cleanup of player names that use ^xRGB
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Jan 2009 19:58:58 +0000 (19:58 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Jan 2009 19:58:58 +0000 (19:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8622 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index b80cf5638085f0632361ad9d8784379c0179a934..9c497916d8d2f33cbe664bff846403a80c9ee690 100644 (file)
@@ -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++;