From 285b6801a0d827e38cc3b4edfab4a5cebc6aec15 Mon Sep 17 00:00:00 2001 From: cron Date: Tue, 12 Jan 2021 03:48:03 +0000 Subject: [PATCH] hignore: fix patterns, make better for chat bridges --- clientmods/hignore/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clientmods/hignore/init.lua b/clientmods/hignore/init.lua index f981c4500..19cac2b1b 100644 --- a/clientmods/hignore/init.lua +++ b/clientmods/hignore/init.lua @@ -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