From: terencehill Date: Mon, 14 Jan 2019 14:14:38 +0000 (+0100) Subject: Always use white text when there's /me in a chat line; it fixes "if your name has... X-Git-Tag: xonotic-v0.8.5~1661^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cd1581daf5ea8b0ecdb6a726db448d553fc626f1;p=xonotic%2Fxonotic-data.pk3dir.git Always use white text when there's /me in a chat line; it fixes "if your name has no colors and you say test /me test, then the first test is white" --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ee87e2ea2..fe0c04179 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -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")