From: Samual Lenks Date: Sun, 24 Feb 2013 07:33:31 +0000 (-0500) Subject: Actually, this is an ETX character, not an STX character X-Git-Tag: xonotic-v0.7.0~62^2~23^2~134 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d0878130e21d882c52fe155ee6857e199a36a60;p=xonotic%2Fxonotic-data.pk3dir.git Actually, this is an ETX character, not an STX character --- diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 91740c362..4d8be9c80 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -837,13 +837,13 @@ string Process_Notif_Line(float check_newline, float chat, string input, string if((chat && autocvar_notification_allow_chatboxprint) || (autocvar_notification_allow_chatboxprint == 2)) { - // pass 1: add STX char at beginning of line + // pass 1: add ETX char at beginning of line input = strcat("\{3}", input); - // pass 2: add STX char at end of each new line (so that messages with multiple lines are put through chatbox too) + // pass 2: add ETX char at end of each new line (so that messages with multiple lines are put through chatbox too) input = strreplace("\n", "\n\{3}", input); - // pass 3: strip trailing STX char + // pass 3: strip trailing ETX char if(substring(input, (strlen(input) - 1), 1) == "\{3}") { input = substring(input, 0, (strlen(input) - 1)); } }