diff options
author | cheapie <no-email-for-you@example.com> | 2015-08-09 00:31:27 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2015-08-09 00:31:27 -0500 |
commit | 26852aa8c58921635a771ab13de2db2e82d8707d (patch) | |
tree | 41f3b766ae9755c3a3eea6c12316691f61a22a43 | |
parent | f6e4f38e1145b9bfb07eb50a866429d4aa53f1c5 (diff) | |
download | dropthecaps-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.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") |