Fix emoji variation selector issue

This commit is contained in:
acw0 2020-06-05 18:34:24 -04:00
parent e8068cc1a9
commit 5714c18668

View File

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