Don't look inside words.

This commit is contained in:
Auke Kok 2017-11-05 11:57:53 -08:00
parent a51bd8e935
commit 9d132c8e1b

View File

@ -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