Skip to content

Commit

Permalink
Merge pull request #836 from AntlerForce/master
Browse files Browse the repository at this point in the history
Confirm before Kickban
  • Loading branch information
AntlerForce authored Nov 30, 2024
2 parents 5b31a0a + 933e2c0 commit aa7f395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LuaMenu/widgets/api_user_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,10 @@ local function GetUserControls(userName, opts)
elseif selectedName == "Copy Name" then
Spring.SetClipboard(userName)
elseif selectedName == "Kickban" then
lobby:SayBattle("!kickban "..userName)
local function YesFunc()
lobby:SayBattle("!kickban "..userName)
end
WG.Chobby.ConfirmationPopup(YesFunc, "Are you sure you want to kickban " .. userName .. "? This will call a vote if not boss.", nil, nil, nil, "Kickban", "Cancel", nil)
elseif selectedName == "Remove" then
userControls.lobby:RemoveAi(userName)
elseif selectedName == "Unfriend" then
Expand Down

0 comments on commit aa7f395

Please sign in to comment.