summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-12-03 10:44:35 -0600
committerBrandon <brandon@bremaweb.com>2013-12-03 10:44:35 -0600
commitd0b4f92b07e0af62cecdea80b7c39adadd64b87e (patch)
treefb7a57dd3cb64f3b13f8aefb3a86607c56d48762
parentf48e850ed8089a8a3469244ea6c32b6a9a890abf (diff)
fix use of get_string which doesn't exist
-rw-r--r--protection.lua4
1 files 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 <LandRush>: "..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 <LandRush>: "..name.." banned for "..tostring(banlength).." minutes for attempted griefing")
end
minetest.ban_player(name)