From 88d1149d7e781ba4554e0ddbb972086a86bd9aa2 Mon Sep 17 00:00:00 2001 From: cron Date: Wed, 7 Oct 2020 00:13:40 +0000 Subject: [PATCH] hignore: fix server names and duplicate messages --- clientmods/hignore/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientmods/hignore/init.lua b/clientmods/hignore/init.lua index ce62bc07e..a7e1c5d20 100644 --- a/clientmods/hignore/init.lua +++ b/clientmods/hignore/init.lua @@ -43,7 +43,7 @@ local function localize_player(player) name = info.address end - return player .. "@" .. info.ip .. ":" .. info.port + return player .. "@" .. name .. ":" .. info.port end @@ -76,6 +76,7 @@ minetest.register_on_receiving_chat_message(function(message) message = message:match(".- | (.*)") if hignore.highlight[player] == nil then minetest.display_chat_message(message) + return true end end