diff options
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,5 +1,5 @@ minetest.register_on_chat_message(function(name, message) - if message:len()>5 and message:lower()~=message and message:upper()==message then + if message:len()>16 and message:lower()~=message and message:upper()==message then minetest.kick_player(name,"Sending all-caps messages is not allowed") minetest.chat_send_all(string.format("* %s was kicked for sending an all-caps message.",name)) if minetest.get_modpath("irc") then irc:say(string.format("* %s was kicked for sending an all-caps message.",name)) end |