Fixes #4 Messages logged once per user
This commit is contained in:
parent
ab4aea9b9d
commit
87e64593ba
4
lib.lua
4
lib.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user