fix chatplus logging
This commit is contained in:
parent
9371a329ce
commit
96cd334d4b
1 changed files with 1 additions and 2 deletions
|
@ -316,8 +316,7 @@ minetest.register_chatcommand("mail", {
|
||||||
|
|
||||||
minetest.log("To: "..to..", From: "..name..", MSG: "..msg)
|
minetest.log("To: "..to..", From: "..name..", MSG: "..msg)
|
||||||
if chatplus.log_handle ~= nil then
|
if chatplus.log_handle ~= nil then
|
||||||
chatplus.log_handle:write(os.date("%d/%m/%Y %I:%M%p").." To: "..to..", From: "..name..", MSG: "..msg)
|
chatplus.log("To: "..to..", From: "..name..", MSG: "..msg)
|
||||||
chatplus.log_handle:flush()
|
|
||||||
end
|
end
|
||||||
if chatplus.players[to] then
|
if chatplus.players[to] then
|
||||||
table.insert(chatplus.players[to].inbox,os.date("%d/%m").." <"..name..">: "..msg)
|
table.insert(chatplus.players[to].inbox,os.date("%d/%m").." <"..name..">: "..msg)
|
||||||
|
|
Loading…
Reference in a new issue