From 946e1e2f26f4317487f6c6293e063fc59108f778 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 15 Jun 2013 22:43:59 -0500 Subject: fix chatplus integration --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index f7c5005..de3f62a 100644 --- a/init.lua +++ b/init.lua @@ -8,7 +8,7 @@ local autoBan = false -- users who attempt to dig and build in claimed areas ca local banLevel = 40 -- the offense level they must exceed to get banned, 40 is roughly 5 nodes dug in the same area local banWarning = 25 -- the offense level they start getting ban warnings local offenseReset = 1440 -- after this number of minutes all offenses will be forgiven -local adminUser = '' -- this user will be messaged if chat plus is installed when a player is autobanned +local adminUser = nil -- this user will be messaged if chat plus is installed when a player is autobanned local chunkSize = 16 @@ -190,7 +190,7 @@ function minetest.node_dig(pos, node, digger) minetest.chat_send_player(player, "You have been banned!") minetest.log("action",player.." has been banned for griefing attempts") minetest.chat_send_all(player.." has been banned for griefing attempts") - if ( chatplus ) then + if ( chatplus and adminUser ~= nil) then table.insert(chatplus.players[adminUser].messages,"mail from : "..player.." banned for attempted griefing") end minetest.ban_player(player) -- cgit v1.2.3