From fe1664b46dfbc79b8e9fb94f0b1ce256d5f16b83 Mon Sep 17 00:00:00 2001 From: Myra Date: Fri, 4 Apr 2025 20:42:13 +0200 Subject: [PATCH] IPIntel now rounds to 2 decimal points (#36298) * IPIntel now rounds to 2 decimal points * Nvm i understood what pjb wanted now --- Content.Server/Connection/IPIntel/IPIntel.cs | 4 ++-- Resources/Locale/en-US/administration/admin-alerts.ftl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Server/Connection/IPIntel/IPIntel.cs b/Content.Server/Connection/IPIntel/IPIntel.cs index 51a0b74089..a2e7bc580c 100644 --- a/Content.Server/Connection/IPIntel/IPIntel.cs +++ b/Content.Server/Connection/IPIntel/IPIntel.cs @@ -259,7 +259,7 @@ public sealed class IPIntel { _chatManager.SendAdminAlert(Loc.GetString("admin-alert-ipintel-warning", ("player", username), - ("percent", Math.Round(score)))); + ("percent", score))); } if (!decisionIsReject) @@ -269,7 +269,7 @@ public sealed class IPIntel { _chatManager.SendAdminAlert(Loc.GetString("admin-alert-ipintel-blocked", ("player", username), - ("percent", Math.Round(score)))); + ("percent", score))); } return _rejectBad ? (true, Loc.GetString("ipintel-suspicious")) : (false, string.Empty); diff --git a/Resources/Locale/en-US/administration/admin-alerts.ftl b/Resources/Locale/en-US/administration/admin-alerts.ftl index a7c7f6f402..dd6ea2d892 100644 --- a/Resources/Locale/en-US/administration/admin-alerts.ftl +++ b/Resources/Locale/en-US/administration/admin-alerts.ftl @@ -1,3 +1,3 @@ admin-alert-shared-connection = {$player} is sharing a connection with {$otherCount} connected player(s): {$otherList} -admin-alert-ipintel-blocked = {$player} was rejected from joining due to their IP having a {TOSTRING($percent, "P0")} confidence of being a VPN/Datacenter. -admin-alert-ipintel-warning = {$player} IP has a {TOSTRING($percent, "P0")} confidence of being a VPN/Datacenter. Please watch them. +admin-alert-ipintel-blocked = {$player} was rejected from joining due to their IP having a {TOSTRING($percent, "P2")} confidence of being a VPN/Datacenter. +admin-alert-ipintel-warning = {$player} IP has a {TOSTRING($percent, "P2")} confidence of being a VPN/Datacenter. Please watch them.