forked from mtcontrib/email
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
aec499d25f |
@ -1,2 +0,0 @@
|
||||
chatplus?
|
||||
sfinv?
|
@ -1 +0,0 @@
|
||||
Adds email style inboxes to Minetest.
|
6
init.lua
6
init.lua
@ -74,7 +74,7 @@ function email.get_formspec(name)
|
||||
|
||||
local fs = "vertlabel[0,0;Your Inbox]"
|
||||
|
||||
local function row(fs, c1, date, from, msg)
|
||||
function row(fs, c1, date, from, msg)
|
||||
date = minetest.formspec_escape(date)
|
||||
from = minetest.formspec_escape(from)
|
||||
msg = minetest.formspec_escape(msg)
|
||||
@ -147,7 +147,7 @@ if minetest.global_exists("sfinv") then
|
||||
end
|
||||
|
||||
minetest.register_on_player_receive_fields(function(player,formname,fields)
|
||||
if formname == "email:inbox" and fields.clear then
|
||||
if fields.clear then
|
||||
local name = player:get_player_name()
|
||||
email.clear_inbox(name)
|
||||
minetest.chat_send_player(name, "Inbox cleared!")
|
||||
@ -223,5 +223,3 @@ minetest.register_chatcommand("mail", {
|
||||
dofile(minetest.get_modpath("email") .. "/hud.lua")
|
||||
|
||||
email.init()
|
||||
|
||||
minetest.log("action", "[email] loaded.")
|
||||
|
Reference in New Issue
Block a user