Wrap getWords() with anyCaseInsensitive()

This commit is contained in:
Craftplacer 2020-01-21 23:43:21 +01:00
parent 63c8ae8211
commit 4d6ff31134

View File

@ -137,9 +137,7 @@ namespace osu.Game.Online.Chat
private void checkForMentions(Channel channel, Message message, string username)
{
var words = getWords(message.Content);
if (!notifyOnMention.Value || !anyCaseInsensitive(words, username))
if (!notifyOnMention.Value || !anyCaseInsensitive(getWords(message.Content), username))
return;
var notification = new MentionNotification(message.Sender.Username, channel);