From cd1581daf5ea8b0ecdb6a726db448d553fc626f1 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 14 Jan 2019 15:14:38 +0100 Subject: [PATCH] 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" --- qcsrc/server/client.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.39.2