mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:47:51 +08: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