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;