mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-20 16:41:25 +00:00
use proper handler
This commit is contained in:
parent
cbceb94f22
commit
2d087eaa13
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function mail.webmail_init(http, url, key)
|
||||||
mail.handlers.auth(data.data)
|
mail.handlers.auth(data.data)
|
||||||
|
|
||||||
elseif data.type == "send" then
|
elseif data.type == "send" then
|
||||||
mail.handlers.auth(data.data) -- { src, dst, subject, body }
|
mail.handlers.send(data.data) -- { src, dst, subject, body }
|
||||||
|
|
||||||
elseif data.type == "delete-mail" then
|
elseif data.type == "delete-mail" then
|
||||||
mail.handlers.delete(data.playername, data.index) -- index 1-based
|
mail.handlers.delete(data.playername, data.index) -- index 1-based
|
||||||
|
|
Loading…
Add table
Reference in a new issue