mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +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
|
|
@ -51,6 +51,8 @@ namespace PluralKit
|
|||
|
||||
[JsonIgnore] public string ProxyString => $"{Prefix ?? ""}text{Suffix ?? ""}";
|
||||
|
||||
public bool IsEmpty => Prefix == null && Suffix == null;
|
||||
|
||||
public bool Equals(ProxyTag other) => Prefix == other.Prefix && Suffix == other.Suffix;
|
||||
|
||||
public override bool Equals(object obj) => obj is ProxyTag other && Equals(other);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue