mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -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)
|
||||
minetest.after(10, function()
|
||||
-- create "player2"
|
||||
local auth_handler = minetest.get_auth_handler()
|
||||
auth_handler.set_password("player2", "")
|
||||
|
@ -11,4 +11,5 @@ mtt.register("send mail", function(callback)
|
|||
local list2 = mail.getPlayerInboxMessages("player2")
|
||||
assert(list2 ~= nil and #list2 > 0)
|
||||
callback()
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Reference in a new issue