Skip to content

Commit

Permalink
Don't warn if only one player is using an IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed May 31, 2024
1 parent 4c342e4 commit 42df407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archtec/scripts/df_detect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 42df407

Please sign in to comment.