From 75cb2d76222a08748a260cd2d12a507feb21924b Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 30 Aug 2024 13:43:51 -0500 Subject: Fix a few deprecated things and a global leak --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 0dc0aef..075e76e 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -caps_message_count={} +local caps_message_count={} local caps_percentage = function(message) local upper = message:upper() @@ -33,7 +33,7 @@ minetest.register_on_chat_message(function(name, message) if caps_message_count[name]>=3 then minetest.kick_player(name,"Used too many capital letters") minetest.chat_send_all(string.format("* %s was kicked for using too many capital letters.",name)) - if minetest.get_modpath("irc") then irc:say(string.format("* %s was kicked for using too many capital letters.",name)) end + if minetest.get_modpath("irc") then irc.say(string.format("* %s was kicked for using too many capital letters.",name)) end minetest.log("action", string.format("Kicked %s for using too many capital letters",name)) else if minetest.get_modpath("notice") then -- cgit v1.2.3