Don't show password, since we can't anymore

This commit is contained in:
Luke aka SwissalpS 2024-09-14 14:20:04 +02:00
parent 8f249e27cc
commit 0063990b28

@ -297,9 +297,6 @@ local function handle_command(name, param)
end end
end end
local summary = S("Name: @1\nOwner: @2\nMembers: @3", faction_name, factions.get_owner(faction_name), fmembers) local summary = S("Name: @1\nOwner: @2\nMembers: @3", faction_name, factions.get_owner(faction_name), fmembers)
if factions.get_owner(faction_name) == name or minetest.get_player_privs(name)[factions.priv] then
summary = summary .. "\n" .. S("Password: @1", factions.get_password(faction_name))
end
return true, summary return true, summary
end end
elseif action == "player_info" then elseif action == "player_info" then