]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply colorprefix after the name string as well, so that messages including the playe...
authorMario <mario@smbclan.net>
Sat, 27 Oct 2018 21:13:21 +0000 (07:13 +1000)
committerMario <mario@smbclan.net>
Sat, 27 Oct 2018 21:13:21 +0000 (07:13 +1000)
qcsrc/server/client.qc

index d54abcb6c9ed65eb086b4c221dba8384dc7e0239..41c7368509449c0921d27f1985923a1273691ac4 100644 (file)
@@ -2745,7 +2745,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, ")^7") : strcat(colorprefix, namestr));
+                       string newnamestr = ((teamsay) ? strcat(colorstr, "(", colorprefix, namestr, colorstr, ")", colorprefix) : strcat(colorprefix, namestr, colorprefix));
                        FOREACH_WORD(msgin, true,
                        {
                                if(strdecolorize(it) == "/me")
@@ -2787,7 +2787,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
                                //msgin = strreplace("/me", "", msgin);
                                //msgin = substring(msgin, 3, strlen(msgin));
                                //msgin = strreplace("/me", strcat(colorprefix, namestr), msgin);
-                               msgstr = strcat("\{1}^4* ", "^7", msgin);
+                               msgstr = strcat("\{1}^4* ^7", msgin);
                        }
                        else {
                                msgstr = "\{1}";