function policy.mepattern(action, badword)
Hello, this is not a problem, but rather a wish to expand the functionality, maybe someone will come in handy. Because LUA does not fully contain regexp, but only patterns, then I added the following to my program settings:
function policy.mepattern(action, badword) return function(_, query) for i = 1, #badword, 1 do if string.find(query:name(), "."..badword[i]..".") then return action end end return nil end end
policy.add(policy.mepattern(ansmeip, { "pussy", "sex", "adult", "porno", etc. }))