From 62238d494ea56f8dcf42166abf114ea6c063be8d Mon Sep 17 00:00:00 2001 From: JustNrik <35231903+JustNrik@users.noreply.github.com> Date: Wed, 22 Aug 2018 14:13:06 -0400 Subject: [PATCH] Update MessageExtensions.cs --- src/Discord.Net.Commands/Extensions/MessageExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/Extensions/MessageExtensions.cs b/src/Discord.Net.Commands/Extensions/MessageExtensions.cs index 49bcccbd8..617078953 100644 --- a/src/Discord.Net.Commands/Extensions/MessageExtensions.cs +++ b/src/Discord.Net.Commands/Extensions/MessageExtensions.cs @@ -52,7 +52,7 @@ namespace Discord.Commands var text = msg.Content; if (text.Length <= 3 || text[text.Length - 1] != '>') return false; - int iniPos = text.IndexOf('<'); + int iniPos = text.LastIndexOf('<'); if (iniPos == -1) return false; if (!MentionUtils.TryParseUser(text.Substring(iniPos, text.Length - iniPos), out ulong userId)) return false; if (user.Id == userId) return true;