mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-26 19:50:36 +00:00
try to sanitize username for warning list mention
This commit is contained in:
parent
d65f533d32
commit
ed78dc24bd
@ -326,7 +326,8 @@ internal sealed partial class Warnings: BaseCommandModuleCustom
|
||||
table.Add(warning.Id.ToString(), "+", issuerName, timestamp, warning.Reason, warning.FullReason);
|
||||
}
|
||||
}
|
||||
var result = new StringBuilder("Warning list for ").Append(userName);
|
||||
|
||||
var result = new StringBuilder("Warning list for ").Append(Formatter.Sanitize(userName));
|
||||
if (!isPrivate && !isWhitelisted && count > maxWarningsInPublicChannel)
|
||||
result.Append($" (last {showCount} of {count}, full list in DMs)");
|
||||
result.AppendLine(":").Append(table);
|
||||
|
Loading…
Reference in New Issue
Block a user