From 8999ed46a23d08e987899549171d503826ecc73b Mon Sep 17 00:00:00 2001 From: Fraser Watt <28698343+FrazzIe@users.noreply.github.com> Date: Sat, 12 Sep 2020 23:33:51 +0100 Subject: [PATCH] fix adding player to radio when config option is false #62 --- client.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 8b37bf0..e1c4824 100644 --- a/client.lua +++ b/client.lua @@ -456,7 +456,9 @@ AddEventHandler("mumble:SetVoiceData", function(player, key, value) end if playerServerId == player then - SendNUIMessage({ radioId = playerServerId, radioName = playerData.radioName, self = true }) -- Add client to radio list + if mumbleConfig.showRadioList then + SendNUIMessage({ radioId = playerServerId, radioName = playerData.radioName, self = true }) -- Add client to radio list + end for id, _ in pairs(radioData[value]) do -- Add radio targets of existing players in channel if id ~= playerServerId then