Add log level to avoid logs being printed to chat

This commit is contained in:
rubenwardy 2021-02-19 22:24:57 +00:00
parent 5bdb99d184
commit 1e80291664

View file

@ -103,9 +103,9 @@ function ctf.error(area, msg)
end
function ctf.log(area, msg)
if area and area ~= "" then
minetest.log("[CTF | " .. area .. "] " .. msg)
minetest.log("info", "[CTF | " .. area .. "] " .. msg)
else
minetest.log("[CTF]" .. msg)
minetest.log("info", "[CTF]" .. msg)
end
end
function ctf.action(area, msg)