From b47198299bfa9fd7c52e83e17ce4737bdd7beb1d Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Mon, 16 Sep 2024 16:30:15 +0200 Subject: [PATCH] no-op depricated and useless get_password --- init.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 6457695..fc808c9 100644 --- a/init.lua +++ b/init.lua @@ -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