Skip to content

Commit

Permalink
fix blank username in editpunishment
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Dec 2, 2024
1 parent 4515344 commit 43e3de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/game/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 43e3de8

Please sign in to comment.