From 4b556b73fb87023ef8db76552ef946782fea51a5 Mon Sep 17 00:00:00 2001 From: Rinary Date: Sat, 2 Nov 2024 21:41:43 +0200 Subject: [PATCH] fix --- Content.Server/Administration/Managers/BanManager.cs | 2 +- Resources/Locale/ru-RU/_strings/info/ban.ftl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Administration/Managers/BanManager.cs b/Content.Server/Administration/Managers/BanManager.cs index b549b3291c8..df8c0641fe9 100644 --- a/Content.Server/Administration/Managers/BanManager.cs +++ b/Content.Server/Administration/Managers/BanManager.cs @@ -223,7 +223,7 @@ public async void CreateServerBan(NetUserId? target, string? targetUsername, Net ("ip", addressRangeString), ("hwid", hwidString), ("reason", reason), - ("round", roundId)); + ("round", roundId == null ? Loc.GetString("server-ban-unknown-round") : roundId)); _sawmill.Info(logMessage); _chat.SendAdminAlert(logMessage); diff --git a/Resources/Locale/ru-RU/_strings/info/ban.ftl b/Resources/Locale/ru-RU/_strings/info/ban.ftl index 7166259c449..5e639129b0a 100644 --- a/Resources/Locale/ru-RU/_strings/info/ban.ftl +++ b/Resources/Locale/ru-RU/_strings/info/ban.ftl @@ -73,6 +73,7 @@ server-ban-string = { $admin } создал бан на сервере с уро ban-panel-erase = Стереть сообщения в чате и игрока из раунда server-ban-string-never = никогда server-ban-string-no-pii = { $admin } установил серверный бан { $severity } тяжести, который истечёт { $expires } у { $name } с причиной: { $reason }, раунд: { $round } +server-ban-unknown-round = Неизвестный cmd-ban_exemption_get-arg-player = # Kick on ban ban-kick-reason = You have been banned