Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Oct 29, 2023
1 parent d74a571 commit 3a841f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProjectLighthouse/Database/DatabaseContext.Notifications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public async Task SendNotification
{
StringBuilder builder = new(text);

// Append server name to notification text if enabled
// Prepend server name to notification text if enabled
if (ServerConfiguration.Instance.NotificationConfiguration.ShowServerNameInText)
{
builder.Insert(0, $"[{ServerConfiguration.Instance.Customization.ServerName}] ");
}
// Append timestamp to notification text if enabled
// Prepend timestamp to notification text if enabled
if (ServerConfiguration.Instance.NotificationConfiguration.ShowTimestampInText)
{
builder.Insert(0, $"[{DateTime.Now:HH:mm:ss}] ");
Expand Down

0 comments on commit 3a841f5

Please sign in to comment.