]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
IPIntel now rounds to 2 decimal points (#36298)
authorMyra <vasilis@pikachu.systems>
Fri, 4 Apr 2025 18:42:13 +0000 (20:42 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 18:42:13 +0000 (20:42 +0200)
* IPIntel now rounds to 2 decimal points

* Nvm i understood what pjb wanted now

Content.Server/Connection/IPIntel/IPIntel.cs
Resources/Locale/en-US/administration/admin-alerts.ftl

index 51a0b74089d01e03b4d5bda853f1446d2b00918e..a2e7bc580c24dbe8afa82acf0bfaaff63fececb9 100644 (file)
@@ -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);
index a7c7f6f4028e4a0a1baae9bc44f7424a1a9a600a..dd6ea2d8926f2dfedf66a5ade25189fdf67f85c2 100644 (file)
@@ -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.