From 6be09bf71cca8126f37ee3bb4bc0670aa2487f46 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Sun, 16 Feb 2025 22:00:03 -0600 Subject: [PATCH] Tweak IRC --- .../Components/Chat/Providers/IrcProvider.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Chat/Providers/IrcProvider.cs b/src/Tgstation.Server.Host/Components/Chat/Providers/IrcProvider.cs index 7ce331065f..c0a1e7339a 100644 --- a/src/Tgstation.Server.Host/Components/Chat/Providers/IrcProvider.cs +++ b/src/Tgstation.Server.Host/Components/Chat/Providers/IrcProvider.cs @@ -268,9 +268,17 @@ namespace Tgstation.Server.Host.Components.Chat.Providers } var result = String.Format(CultureInfo.InvariantCulture, "#{0} at {1}", x.Number, x.TargetCommitSha![..7]); + if (x.Comment != null) { - result += String.Format(CultureInfo.InvariantCulture, " ({1} - {0})", x.Comment, status); + if (!string.IsNullOrEmpty(status)) + { + result += String.Format(CultureInfo.InvariantCulture, " ({1} - {0})", x.Comment, status); + } + else + { + result += String.Format(CultureInfo.InvariantCulture, " ({0})", x.Comment); + } } else if (!string.IsNullOrEmpty(status)) {