]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Continue chatbox mask through newline notifications too
authorSamual Lenks <samual@xonotic.org>
Sat, 23 Feb 2013 19:54:50 +0000 (14:54 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 23 Feb 2013 19:54:50 +0000 (14:54 -0500)
qcsrc/common/notifications.qh

index 658faea37d95264d1d25f68bbb5fff4ff5a62b7f..2469c3fe36612474d30f296d4662e38633961e08 100644 (file)
@@ -747,7 +747,7 @@ string Process_Notif_Line(float check_newline, float chat, string input, string
                #ifdef CSQC
                if((chat && autocvar_notification_allow_chatboxprint)
                        || (autocvar_notification_allow_chatboxprint == 2))
-                               { input = strcat("\{3}", input); }
+                               { input = strcat("\{3}", strreplace("\n", "\{3}\n", input)); }
                #endif
                if(substring(input, (strlen(input) - 1), 1) != "\n")
                {