mirror of
https://github.com/minetest-mods/filter.git
synced 2025-03-15 04:11:26 +00:00
Don't look inside words.
This commit is contained in:
parent
a51bd8e935
commit
9d132c8e1b
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -44,7 +44,7 @@ minetest.register_on_chat_message(function(name, message)
|
|||
end
|
||||
|
||||
for _, w in ipairs(words) do
|
||||
if string.match(message, w) then
|
||||
if string.find(message, "%f[%a]" .. w .. "%f[%A]") then
|
||||
local privs = minetest.get_player_privs(name)
|
||||
|
||||
privs.shout = nil
|
||||
|
|
Loading…
Add table
Reference in a new issue