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; return;
// ignore messages from yourself // ignore messages from yourself
var localUsername = localUser.Value.Username; if (message.Sender.Id == localUser.Value.Id)
if (message.Sender.Username == localUsername)
continue; continue;
if (checkForPMs(channel, message)) if (checkForPMs(channel, message))
continue; continue;
// change output to bool again if another "message processor" is added. // change output to bool again if another "message processor" is added.
checkForMentions(channel, message, localUsername); checkForMentions(channel, message, localUser.Value.Username);
} }
} }