mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
Merge branch 'chat-mention' of github.com:Craftplacer/osu into chat-mention
This commit is contained in:
commit
b3ac67675e
@ -140,7 +140,7 @@ namespace osu.Game.Online.Chat
|
|||||||
/// Checks if <paramref name="message"/> contains <paramref name="username"/>, if not, retries making spaces into underscores.
|
/// Checks if <paramref name="message"/> contains <paramref name="username"/>, if not, retries making spaces into underscores.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>If the <paramref name="message"/> mentions the <paramref name="username"/></returns>
|
/// <returns>If the <paramref name="message"/> mentions the <paramref name="username"/></returns>
|
||||||
private static bool isMentioning(string message, string username) => message.IndexOf(username, StringComparison.OrdinalIgnoreCase) != -1 || message.IndexOf(username.Replace(' ', '_'), StringComparison.OrdinalIgnoreCase) != -1;
|
private static bool isMentioning(string message, string username) => message.Contains(username, StringComparison.OrdinalIgnoreCase) || message.Contains(username.Replace(' ', '_'), StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
public class OpenChannelNotification : SimpleNotification
|
public class OpenChannelNotification : SimpleNotification
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user