Fixes #4 Messages logged once per user

This commit is contained in:
AliasAlreadyTaken 2022-05-15 01:36:07 +02:00
parent ab4aea9b9d
commit 87e64593ba

View File

@ -303,12 +303,12 @@ function lib.chat(playername, text)
minetest.chat_send_player(pname, "<" .. playername .. "> " .. text)
end
minetest.log("debug", "[MOD] " .. lib.modname .. " : Module lib: chat: <" .. playername .. "> " .. text)
minetest.log("verbose", "[MOD] " .. lib.modname .. " : Module lib: chat: <" .. playername .. "> " .. text)
elseif(lib.check_channel(pname, channel)) then
minetest.chat_send_player(pname, lib.yellow .. "<" .. lib.orange .. playername .. "@"
.. channel .. lib.yellow .. "> " .. text)
minetest.log("debug", "[MOD] " .. lib.modname .. " : Module lib: chat: <"
minetest.log("verbose", "[MOD] " .. lib.modname .. " : Module lib: chat: <"
.. playername .. "@" .. channel .. "> " .. text)
end -- if(channel == nil