From 36873e08ee9f14bb36e9b6b600930b15464c207e Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 7 Apr 2022 03:47:38 -0400 Subject: [PATCH] chore: PR lint --- PluralKit.Bot/Commands/Message.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PluralKit.Bot/Commands/Message.cs b/PluralKit.Bot/Commands/Message.cs index 5f91479a..3e8edf15 100644 --- a/PluralKit.Bot/Commands/Message.cs +++ b/PluralKit.Bot/Commands/Message.cs @@ -58,17 +58,17 @@ public class ProxiedMessage // Check if we should append or prepend var append = ctx.MatchFlag("append"); var prepend = ctx.MatchFlag("prepend"); - + // Grab the original message content and new message content var originalContent = originalMsg.Content; var newContent = ctx.RemainderOrNull().NormalizeLineEndSpacing(); - + // Append or prepend the new content to the original message content if needed. // If no flag is supplied, the new contents will completly overwrite the old contents // If both flags are specified. the message will be prepended AND appended if (append && prepend) newContent = $"{newContent} {originalContent} {newContent}"; - else if (append) newContent = originalContent +" "+ newContent; - else if (prepend) newContent = newContent +" "+ originalContent; + else if (append) newContent = originalContent + " " + newContent; + else if (prepend) newContent = newContent + " " + originalContent; if (newContent.Length > 2000) throw new PKError("PluralKit cannot proxy messages over 2000 characters in length.");