Skip to content

Comments

Limit audit log reasons for kicks and bans to 512 characters#253

Merged
eritbh merged 3 commits intomainfrom
fix/truncate-audit-log-reasons
May 19, 2025
Merged

Limit audit log reasons for kicks and bans to 512 characters#253
eritbh merged 3 commits intomainfrom
fix/truncate-audit-log-reasons

Conversation

@eritbh
Copy link
Member

@eritbh eritbh commented May 19, 2025

Fixes #252. Kick/ban messages longer than 512 characters will appear cut off with an ellipsis in the audit log.

Adds a helper for truncating strings and adding an ellipsis if necessary. Cleans up some other areas where we do similar things as well.

@eritbh eritbh requested a review from a team as a code owner May 19, 2025 16:06
@eritbh eritbh added the bug Something isn't working label May 19, 2025
@eritbh eritbh merged commit 14bff93 into main May 19, 2025
2 checks passed
@eritbh eritbh deleted the fix/truncate-audit-log-reasons branch May 19, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle longer ban messages

1 participant