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 c27ec57..0dc0aef 100644
--- a/init.lua
+++ b/init.lua
@@ -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")