From 43e3de807a919224bda1687536f279cd4a061d81 Mon Sep 17 00:00:00 2001 From: dankmeme01 <42031238+dankmeme01@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:05:38 +0100 Subject: [PATCH] fix blank username in editpunishment --- server/game/src/bridge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/game/src/bridge.rs b/server/game/src/bridge.rs index a6f40b59..9817b9bb 100644 --- a/server/game/src/bridge.rs +++ b/server/game/src/bridge.rs @@ -464,7 +464,7 @@ impl CentralBridge { AdminUserAction::EditPunishment(action) => { messages.push(WebhookMessage::UserViolationMetaChanged(ViolationMetaChange { account_id: user.account_id, - name: user.user_name.clone().unwrap_or_default(), + name: user_name.into_owned(), is_ban: action.is_ban, expiry: if action.expires_at == 0 { None } else { Some(action.expires_at) }, reason: if action.reason.is_empty() {