mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 10:43:50 +01:00
no-op depricated and useless get_password
This commit is contained in:
parent
d333c8fa71
commit
b47198299b
7
init.lua
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user