1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 18:13:00 +08:00

fixed constant naming

This commit is contained in:
FreezyLemon 2017-12-28 22:11:10 +01:00
parent ae79be7b51
commit d66d741af2

View File

@ -237,11 +237,11 @@ namespace osu.Game.Overlays.Chat
contentFlow.AddText(message.Content.Substring(lastLinkEndIndex, link.Index - lastLinkEndIndex));
lastLinkEndIndex = link.Index + link.Length;
const string channelPrefix = "osu://chan/";
const string channel_link_prefix = "osu://chan/";
// If a channel doesn't exist, add it as normal text instead
if (link.Url.StartsWith(channelPrefix))
if (link.Url.StartsWith(channel_link_prefix))
{
var channelName = link.Url.Substring(channelPrefix.Length).Split('/')[0];
var channelName = link.Url.Substring(channel_link_prefix.Length).Split('/')[0];
if (chat?.AvailableChannels.TrueForAll(c => c.Name != channelName) != false)
{
linksToRemove.Add(link);