hignore: fix patterns, make better for chat bridges

This commit is contained in:
cron 2021-01-12 03:48:03 +00:00
parent 36d6f38de0
commit a6faed858f

View File

@ -82,8 +82,8 @@ local function display(message)
message = minetest.strip_colors(message)
end
local dm = message:match(".*rom (.*): .*")
local pub = message:match("<(.*)>.*")
local dm = message:match(".*rom (.-): .*")
local pub = message:match("<(.-)>.*")
local is_dm = false
local player = dm or pub
@ -111,7 +111,7 @@ local function display(message)
-- strip title
if not is_dm and (hignore.strip[player] or minetest.settings:get_bool("hignore_strip_all")) then
message = message:match(".- | (.*)")
message = message:match(".- | (.*)") or message
if hignore.highlight[player] == nil then
minetest.display_chat_message(message)
return true