]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
New Feature: Votekick bans distinguish themselves as votekicks (#35258)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 17 Feb 2025 20:39:12 +0000 (23:39 +0300)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2025 20:39:12 +0000 (21:39 +0100)
* Feature

* Localization

Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs
Resources/Locale/en-US/discord/vote-notifications.ftl

index 89f4acdef1ec5fac0e8f83465b48424257eb046e..468bfdc0f8cb4874783586408411856ad408e37a 100644 (file)
@@ -544,7 +544,7 @@ namespace Content.Server.Voting.Managers
 
                         uint minutes = (uint)_cfg.GetCVar(CCVars.VotekickBanDuration);
 
-                        _bans.CreateServerBan(targetUid, target, null, targetIP, targetHWid, minutes, severity, reason);
+                        _bans.CreateServerBan(targetUid, target, null, targetIP, targetHWid, minutes, severity, Loc.GetString("votekick-ban-reason", ("reason", reason)));
                     }
                 }
                 else
index f6779cac83eec2ed2575232d8cd5b209c555462b..771d04aa8a246cc477350772184c04a78f0e0c6c 100644 (file)
@@ -9,3 +9,5 @@ votekick-webhook-description = Initiator: { $initiator }; Target: { $target }
 votekick-webhook-cancelled-admin-online = **Vote cancelled due to admins online**
 votekick-webhook-cancelled-admin-target = **Vote cancelled due to target being admin**
 votekick-webhook-cancelled-antag-target = **Vote cancelled due to target being antag**
+
+votekick-ban-reason = "Votekick: {$reason}"