From ae09c399509ebcda752127cc46869df95e8c9065 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Wed, 1 Jan 2020 23:13:01 -0600 Subject: [PATCH] Fix: crash --- fac_chat/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fac_chat/init.lua b/fac_chat/init.lua index 05fec75..bbc897f 100644 --- a/fac_chat/init.lua +++ b/fac_chat/init.lua @@ -131,7 +131,9 @@ function factions.register_command(cmd_name, cmd) register_command(cmd_name, cmd) elseif cmd_type == "table" then for k, v in pairs(cmd_name) do - cmd.dont_show_in_help = next + if next then + cmd.dont_show_in_help = true + end register_command(v, cmd) next = true end