mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 15:27:54 +00:00
fix(MatchRaw commands): don't skip matching flags when setting new value
This commit is contained in:
parent
65b4f0e370
commit
e3fa0f3b32
3 changed files with 9 additions and 9 deletions
|
|
@ -145,7 +145,7 @@ namespace PluralKit.Bot
|
|||
}
|
||||
else
|
||||
{
|
||||
var newDisplayName = ctx.RemainderOrNull();
|
||||
var newDisplayName = ctx.RemainderOrNull(skipFlags: false).NormalizeLineEndSpacing();
|
||||
|
||||
var patch = new GroupPatch { DisplayName = Partial<string>.Present(newDisplayName) };
|
||||
await _db.Execute(conn => _repo.UpdateGroup(conn, target.Id, patch));
|
||||
|
|
@ -195,7 +195,7 @@ namespace PluralKit.Bot
|
|||
}
|
||||
else
|
||||
{
|
||||
var description = ctx.RemainderOrNull().NormalizeLineEndSpacing();
|
||||
var description = ctx.RemainderOrNull(skipFlags: false).NormalizeLineEndSpacing();
|
||||
if (description.IsLongerThan(Limits.MaxDescriptionLength))
|
||||
throw Errors.StringTooLongError("Description", description.Length, Limits.MaxDescriptionLength);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue