fix chatplus logging

This commit is contained in:
rubenwardy 2015-11-30 00:03:44 +00:00
parent 9371a329ce
commit 96cd334d4b

View file

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