mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Use IDs for checking against message author
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user