Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix adding player to radio when config option is false #62
Browse files Browse the repository at this point in the history
  • Loading branch information
FrazzIe committed Sep 12, 2020
1 parent ba9487b commit 8999ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8999ed4

Please sign in to comment.