Add log level to avoid logs being printed to chat

master
rubenwardy 1 year ago
parent 5bdb99d184
commit 1e80291664
  1. 4
      mods/ctf/ctf/core.lua

@ -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)

Loading…
Cancel
Save