mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
Add 10 seconds security to mtt.lua
This commit is contained in:
parent
c7692b1ff1
commit
b8533f14ff
1 changed files with 2 additions and 1 deletions
3
mtt.lua
3
mtt.lua
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
mtt.register("send mail", function(callback)
|
mtt.register("send mail", function(callback)
|
||||||
|
minetest.after(10, function()
|
||||||
-- create "player2"
|
-- create "player2"
|
||||||
local auth_handler = minetest.get_auth_handler()
|
local auth_handler = minetest.get_auth_handler()
|
||||||
auth_handler.set_password("player2", "")
|
auth_handler.set_password("player2", "")
|
||||||
|
@ -11,4 +11,5 @@ mtt.register("send mail", function(callback)
|
||||||
local list2 = mail.getPlayerInboxMessages("player2")
|
local list2 = mail.getPlayerInboxMessages("player2")
|
||||||
assert(list2 ~= nil and #list2 > 0)
|
assert(list2 ~= nil and #list2 > 0)
|
||||||
callback()
|
callback()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue