1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-08 19:40:21 +01:00
server-nalc/mods/xban/intr.lua
Ombridride 232b274c55 initial commit
subgame + mods
2014-10-28 18:01:32 +01:00

21 lines
511 B
Lua
Executable File

-- Extended Ban Mod for Minetest
-- (C) 2013 Diego Martínez <kaeza>
-- See `LICENSE.txt' for details.
-- intr.lua: Internal functions.
-- NOTE: Do not use these from other mods; they may change without notice.
local function mklogger(type)
return function(fmt, ...) minetest.log(type, fmt:format(...)) end
end
xban._.INFO = mklogger("info")
xban._.WARN = mklogger("warning")
xban._.ACTION = mklogger("action")
function xban._.send(name, fmt, ...)
minetest.chat_send_player(name, (fmt:format(...)))
end