Show customvote title in chat on finish (#39137)

* Show customvote title in chat on finish

* update the text
This commit is contained in:
lzk
2025-07-23 16:15:29 +02:00
committed by GitHub
parent 83b3e9e15a
commit 24b75d89a5
2 changed files with 4 additions and 4 deletions

View File

@@ -114,12 +114,12 @@ namespace Content.Server.Voting
{
var ties = string.Join(", ", eventArgs.Winners.Select(c => args[(int) c]));
_adminLogger.Add(LogType.Vote, LogImpact.Medium, $"Custom vote {options.Title} finished as tie: {ties}");
_chatManager.DispatchServerAnnouncement(Loc.GetString("cmd-customvote-on-finished-tie", ("ties", ties)));
_chatManager.DispatchServerAnnouncement(Loc.GetString("cmd-customvote-on-finished-tie", ("title", options.Title), ("ties", ties)));
}
else
{
_adminLogger.Add(LogType.Vote, LogImpact.Medium, $"Custom vote {options.Title} finished: {args[(int) eventArgs.Winner]}");
_chatManager.DispatchServerAnnouncement(Loc.GetString("cmd-customvote-on-finished-win", ("winner", args[(int) eventArgs.Winner])));
_chatManager.DispatchServerAnnouncement(Loc.GetString("cmd-customvote-on-finished-win", ("title", options.Title), ("winner", args[(int) eventArgs.Winner])));
}
_voteWebhooks.UpdateWebhookIfConfigured(webhookState, eventArgs);