mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Handle malformed proxy tag importing correctly
This commit is contained in:
parent
026932049a
commit
7bdc3020b0
2 changed files with 4 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ namespace PluralKit.Bot
|
|||
}
|
||||
else
|
||||
{
|
||||
member.ProxyTags = dataMember.ProxyTags ?? new ProxyTag[] { };
|
||||
// Ignore proxy tags where both prefix and suffix are set to null (would be invalid anyway)
|
||||
member.ProxyTags = (dataMember.ProxyTags ?? new ProxyTag[] { }).Where(tag => !tag.IsEmpty).ToList();
|
||||
}
|
||||
|
||||
member.KeepProxy = dataMember.KeepProxy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue