1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-03 17:10:27 +01:00
server-nalc/mods/riesenpilz/functions.lua
LeMagnesium 6b9b127804 Turned all boot messages into clean minetest.log() calls
- Turned all the 'print' calls at server's boot to 'minetest.log' in order to
   render it more clearly
2015-05-24 10:50:22 +02:00

20 lines
421 B
Lua
Executable File

if riesenpilz.info then
function riesenpilz.inform(msg, spam, t)
if spam <= riesenpilz.max_spam then
local info
if t then
info = string.format("[riesenpilz] "..msg.." after ca. %.2fs", os.clock() - t)
else
info = "[riesenpilz] "..msg
end
minetest.log("action", info)
if riesenpilz.inform_all then
minetest.chat_send_all(info)
end
end
end
else
function riesenpilz.inform()
end
end