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:
parent
f98347b3bb
commit
63c8ae8211
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user