Skip to content

Commit

Permalink
Can remove this now that avatars aren't included in command responses…
Browse files Browse the repository at this point in the history
… or whisper tags any longer
  • Loading branch information
RedFlames committed May 1, 2024
1 parent 3b3e56b commit d70740a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions CelesteNet.Client/Components/CelesteNetChatComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class CelesteNetChatComponent : CelesteNetGameComponent {
public Dictionary<string, string> CommandAliasLookup = new();

public ChatMode Mode => Active ? ChatMode.All : Settings.ChatUI.ShowNewMessages;
protected Regex AvatarRegex = new Regex(@":celestenet_avatar_\d+_:", RegexOptions.Compiled);

// used for hiding your own channel name
// match anything other than main
Expand Down Expand Up @@ -320,11 +319,6 @@ public void Handle(CelesteNetConnection con, DataChat msg) {
if (Client == null)
return;

if (Client.Options.AvatarsDisabled) {
msg.Text = AvatarRegex.Replace(msg.Text, "");
msg.Tag = AvatarRegex.Replace(msg.Tag, "");
}

if (Settings.PlayerListUI.HideOwnChannelName) {
// don't get too eager, only replace text in ACK'd commands and server responses
if (msg.Color != PublicChatColor && msg.Color != WhisperChatColor) {
Expand Down

0 comments on commit d70740a

Please sign in to comment.