From ba7285ee785c01f1240110c2ed97cde9c7fe84a8 Mon Sep 17 00:00:00 2001 From: Raymix Date: Wed, 25 Oct 2017 17:55:27 +0100 Subject: [PATCH] Remove quotes from messages --- Sources/epoch_code/gui/scripts/messaging/Epoch_message.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/gui/scripts/messaging/Epoch_message.sqf b/Sources/epoch_code/gui/scripts/messaging/Epoch_message.sqf index 956543e6..ff743f1b 100644 --- a/Sources/epoch_code/gui/scripts/messaging/Epoch_message.sqf +++ b/Sources/epoch_code/gui/scripts/messaging/Epoch_message.sqf @@ -32,7 +32,9 @@ if(_customCol isEqualTo [])then{ _txtCol = if((_customCol select 1)isEqualTypeAll 0) then [{_customCol select 1},{_txtCol = [1,1,1,0.95]}]; }; -_msg = str (parseText str _msg); //Parses and converts text back to small string +if !(typeName _msg isEqualTo "STRING") then { //Needed to remove quotations from strings + _msg = str (parseText str _msg); //Parses and converts text back to small string +}; if !(isNil "rmx_var_msgQueue") exitWith {rmx_var_msgQueue pushBack [_msg, _time, [_bgCol,_txtCol]]};