From 42df407e4fc4d5de9efc1eda11471e379eda795c Mon Sep 17 00:00:00 2001 From: Niklp Date: Fri, 31 May 2024 15:24:13 +0200 Subject: [PATCH] Don't warn if only one player is using an IP --- archtec/scripts/df_detect.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archtec/scripts/df_detect.lua b/archtec/scripts/df_detect.lua index a8f6fc3..79d7616 100644 --- a/archtec/scripts/df_detect.lua +++ b/archtec/scripts/df_detect.lua @@ -258,7 +258,9 @@ minetest.register_on_joinplayer(function(player) end end - archtec.notify_team("[archtec] IP " .. info.address .. " is currently used by " .. #same_ip .. " players: " .. table.concat(same_ip, ", ") .. ".") + if #same_ip > 1 then + archtec.notify_team("[archtec] IP " .. info.address .. " is currently used by " .. #same_ip .. " players: " .. table.concat(same_ip, ", ") .. ".") + end end end)