summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 421b04d..50f3d07 100644
--- a/init.lua
+++ b/init.lua
@@ -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