Merge pull request #181 from acw0/fix-emojis

Fix emoji variation selector issue
This commit is contained in:
Astrid 2020-06-11 21:13:07 +02:00 committed by GitHub
commit 216dfffe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,7 @@ namespace PluralKit.Bot
if (isMatch) {
var inner = message.Substring(prefix.Length, message.Length - prefix.Length - suffix.Length);
if (leadingMention != null) inner = $"{leadingMention} {inner}";
if (inner == "\U0000fe0f") return null;
return new ProxyMatch { Member = match, System = system, InnerText = inner, ProxyTags = tag};
}
}