mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Wrap getWords() with anyCaseInsensitive()
This commit is contained in:
parent
63c8ae8211
commit
4d6ff31134
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user