mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-12-22 22:02:30 +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
|
||||
|
||||
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
|
||||
return false
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user