mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-12-23 06:12:28 +01:00
Depricate factions.get_password()
returns nil after first run
This commit is contained in:
parent
b864fcafe1
commit
0163900ce9
2
init.lua
2
init.lua
@ -162,6 +162,8 @@ function factions.valid_password(fname, password)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function factions.get_password(fname)
|
function factions.get_password(fname)
|
||||||
|
minetest.log("warning", "Deprecated use of factions.get_password(). "
|
||||||
|
.. "Please update to using factions.valid_password() instead.")
|
||||||
if facts[fname] == nil then
|
if facts[fname] == nil then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user