summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2015-08-09 00:31:27 -0500
committercheapie <no-email-for-you@example.com>2015-08-09 00:31:27 -0500
commit26852aa8c58921635a771ab13de2db2e82d8707d (patch)
tree41f3b766ae9755c3a3eea6c12316691f61a22a43
parentf6e4f38e1145b9bfb07eb50a866429d4aa53f1c5 (diff)
downloaddropthecaps-26852aa8c58921635a771ab13de2db2e82d8707d.tar
dropthecaps-26852aa8c58921635a771ab13de2db2e82d8707d.tar.gz
dropthecaps-26852aa8c58921635a771ab13de2db2e82d8707d.tar.bz2
dropthecaps-26852aa8c58921635a771ab13de2db2e82d8707d.tar.xz
dropthecaps-26852aa8c58921635a771ab13de2db2e82d8707d.zip
Make users with basic_privs exempt
-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")