Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vladtcvs committed Oct 31, 2021
1 parent f3957a1 commit e93f27e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mods/lord/lord_classes/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function races.update_privileges(name, old_granted_privs, old_revoked_privs,
end
end
end

if new_revoked_privs then
for _, priv_name in ipairs(new_revoked_privs) do
privs[priv_name] = nil
Expand Down Expand Up @@ -689,12 +689,12 @@ minetest.register_chatcommand("give_chance", {

-- Check if player exists
-- TODO: handle case of logged out player
local name = args[1]
if not races.player_is_known(name) then
return false, string.format(SL("Player '%s' does not exist"), name)
local username = args[1]
if not races.player_is_known(username) then
return false, string.format(SL("Player '%s' does not exist"), username)
end

races.grant_second_chance(name)
races.grant_second_chance(username)
end
})

Expand Down

0 comments on commit e93f27e

Please sign in to comment.