hignore: fix server names and duplicate messages

This commit is contained in:
cron 2020-10-07 00:13:40 +00:00 committed by Schmappie Eldress
parent e293e1edcc
commit 88d1149d7e

View File

@ -43,7 +43,7 @@ local function localize_player(player)
name = info.address name = info.address
end end
return player .. "@" .. info.ip .. ":" .. info.port return player .. "@" .. name .. ":" .. info.port
end end
@ -76,6 +76,7 @@ minetest.register_on_receiving_chat_message(function(message)
message = message:match(".- | (.*)") message = message:match(".- | (.*)")
if hignore.highlight[player] == nil then if hignore.highlight[player] == nil then
minetest.display_chat_message(message) minetest.display_chat_message(message)
return true
end end
end end