From fe32a28fe454f7680a5166ced8ccc938ea0aed32 Mon Sep 17 00:00:00 2001 From: AndrejIT Date: Sun, 14 Jun 2015 20:41:05 +0300 Subject: [PATCH] Player message is logged Message is logged, so admin can decide if player need to be banned. --- init.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index ab6b64b..969fad6 100644 --- a/init.lua +++ b/init.lua @@ -70,14 +70,14 @@ minetest.register_on_chat_message(function(name, message) if uncensored == 1 then minetest.kick_player(name, "Hey! Was there a bad word?") - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Chat:"..message) return true end if uncensored == 2 then minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!") minetest.chat_send_all("Player <"..name.."> warned for cursing" ) - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Chat:"..message) return true end @@ -90,14 +90,14 @@ if minetest.chatcommands["me"] then if uncensored == 1 then minetest.kick_player(name, "Hey! Was there a bad word?") - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param) return end if uncensored == 2 then minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!") minetest.chat_send_all("Player <"..name.."> warned for cursing" ) - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Me:"..param) return end @@ -112,17 +112,17 @@ if minetest.chatcommands["msg"] then if uncensored == 1 then minetest.kick_player(name, "Hey! Was there a bad word?") - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param) return end if uncensored == 2 then minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!") minetest.chat_send_all("Player <"..name.."> warned for cursing" ) - minetest.log("action", "Player "..name.." warned for cursing") + minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param) return end return old_command(name, param) end -end \ No newline at end of file +end