Bugfix: cancel_invites(..) wasn't really working

This commit is contained in:
Zughy 2023-11-23 16:21:11 +01:00
parent e73b1c0d0e
commit 4769c4ea8d

View File

@ -373,13 +373,14 @@ end
function parties.cancel_invite(p_name, inviter)
-- TODO: cancella after
players_invited[p_name][inviter] = nil
end
function parties.cancel_invites(p_name)
for inviters, _ in pairs(players_invited[p_name]) do
for inviter, _ in pairs(players_invited[p_name]) do
parties.cancel_invite(p_name, inviter)
end
end