1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Use IDs for checking against message author

This commit is contained in:
Craftplacer 2020-01-21 23:42:15 +01:00
parent f98347b3bb
commit 63c8ae8211

View File

@ -103,16 +103,14 @@ namespace osu.Game.Online.Chat
return;
// ignore messages from yourself
var localUsername = localUser.Value.Username;
if (message.Sender.Username == localUsername)
if (message.Sender.Id == localUser.Value.Id)
continue;
if (checkForPMs(channel, message))
continue;
// change output to bool again if another "message processor" is added.
checkForMentions(channel, message, localUsername);
checkForMentions(channel, message, localUser.Value.Username);
}
}