From ccc022e26338540e08cce857d06ea20b60d7c5b0 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Fri, 7 Jun 2019 22:36:21 +0100 Subject: [PATCH] SMh --- Altis_Life.Altis/core/functions/fn_commandHandler.sqf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Altis_Life.Altis/core/functions/fn_commandHandler.sqf b/Altis_Life.Altis/core/functions/fn_commandHandler.sqf index 7a2aaaf..9408332 100644 --- a/Altis_Life.Altis/core/functions/fn_commandHandler.sqf +++ b/Altis_Life.Altis/core/functions/fn_commandHandler.sqf @@ -1,5 +1,6 @@ -// Messy and mostly stolen code + + systemChat "Chat Key pressed"; // If the key pressed in the chat bar was not enter, move on @@ -8,12 +9,11 @@ systemChat "Enter Pressed"; private _chatmsg = ctrlText (finddisplay 24 displayctrl 101); -if ("/" != (_chatmsg select [0,1])) exitWith { }; +if ("/" != (_chatmsg select [0,1])) exitWith { false; }; + systemChat _chatmsg; (finddisplay 24 displayctrl 101) ctrlSetText ""; -// closeDialog 0; -// (findDisplay 24) closeDisplay 1; private _command = (_chatmsg splitString "/"); private _args = (_command splitString " "); @@ -22,3 +22,5 @@ systemChat _command select 0; hint format ["%1", _args]; (findDisplay 24) displayRemoveEventHandler ["KeyDown", chatCommandEventH]; + +true;