From d0b4f92b07e0af62cecdea80b7c39adadd64b87e Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 3 Dec 2013 10:44:35 -0600 Subject: fix use of get_string which doesn't exist --- protection.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protection.lua b/protection.lua index 0ec1173..c5b8f9f 100644 --- a/protection.lua +++ b/protection.lua @@ -81,8 +81,8 @@ function landrush.do_autoban(pos,name) minetest.log("action",name.." has been banned for griefing attempts") minetest.chat_send_all(name.." has been banned for griefing attempts") - if ( chatplus and landrush.config:get_string("adminUser") ~= nil) then - table.insert(chatplus.names[landrush.config:get_string("adminUser")].messages,"mail from : "..name.." banned for "..tostring(banlength).." minutes for attempted griefing") + if ( chatplus and landrush.config:get("adminUser") ~= nil) then + table.insert(chatplus.names[landrush.config:get("adminUser")].messages,"mail from : "..name.." banned for "..tostring(banlength).." minutes for attempted griefing") end minetest.ban_player(name) -- cgit v1.2.3