18 lines
603 B
Lua
18 lines
603 B
Lua
chat_formspec = {}
|
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
chat_formspec.priv = minetest.settings:get("chat_formspec.priv") or "server"
|
|
|
|
dofile(modpath .. "/context.lua")
|
|
dofile(modpath .. "/preset_formspecs.lua")
|
|
dofile(modpath .. "/specs.lua")
|
|
dofile(modpath .. "/show_receive.lua")
|
|
dofile(modpath .. "/chatcommands.lua")
|
|
|
|
function chat_formspec.update()
|
|
chat_formspec.sender_template = chat_formspec.create_sender_template()
|
|
end
|
|
|
|
-- update the predefined formspecs (bc I am lazy and use the easy syntax to create the predefined formspecs too)
|
|
chat_formspec.update() |