diff options
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ minetest.register_on_leaveplayer(function(player) end) minetest.register_on_chat_message(function(name, message) - if message:len()>16 and caps_percentage(message)>0.5 then + if minetest.get_player_privs(name).basic_privs~=true and message:len()>16 and caps_percentage(message)>0.5 then caps_message_count[name] = caps_message_count[name] + 1 if caps_message_count[name]>=3 then minetest.kick_player(name,"Used too many capital letters") |