Always use white text when there's /me in a chat line; it fixes "if your name has... 617/head
authorterencehill <piuntn@gmail.com>
Mon, 14 Jan 2019 14:14:38 +0000 (15:14 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 14 Jan 2019 14:14:38 +0000 (15:14 +0100)
qcsrc/server/client.qc

index ee87e2e..fe0c041 100644 (file)
@@ -2750,7 +2750,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
                if(strstrofs(msgin, "/me", 0) >= 0)
                {
                        string newmsgin = "";
-                       string newnamestr = ((teamsay) ? strcat(colorstr, "(", colorprefix, namestr, colorstr, ")", colorprefix) : strcat(colorprefix, namestr, colorprefix));
+                       string newnamestr = ((teamsay) ? strcat(colorstr, "(", colorprefix, namestr, colorstr, ")", "^7") : strcat(colorprefix, namestr, "^7"));
                        FOREACH_WORD(msgin, true,
                        {
                                if(strdecolorize(it) == "/me")