no-op depricated and useless get_password

This commit is contained in:
Luke aka SwissalpS 2024-09-16 16:30:15 +02:00
parent d333c8fa71
commit b47198299b

@ -164,13 +164,10 @@ function factions.valid_password(faction_name, password)
return factions.hash_password(password) == facts[faction_name].password256
end
function factions.get_password(fname)
function factions.get_password()
minetest.log("warning", "Deprecated use of factions.get_password(). "
.. "Please update to using factions.valid_password() instead.")
if not facts[fname] then
return false
end
return facts[fname].password
return nil
end
if not facts[fname] then