Skip to content

Commit

Permalink
noPrefix -> prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Metraberryy committed Jan 2, 2025
1 parent ab2d917 commit 7637923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ProjectLighthouse/Database/DatabaseContext.Notifications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public partial class DatabaseContext
/// </summary>
/// <param name="userId">The user ID of the target user.</param>
/// <param name="text">The message to send.</param>
/// <param name="noPrefix">Ignore the prepended server name/timestamp.</param>
/// <param name="prefix">Prepend server name/timestamp.</param>
/// <param name="type">The <see cref="NotificationType"/> for the notification. Defaults to <c>ModerationNotification</c>.</param>
public async Task SendNotification
(int userId, string text, bool noPrefix = false, NotificationType type = NotificationType.ModerationNotification)
(int userId, string text, bool prefix = true, NotificationType type = NotificationType.ModerationNotification)
{
if (!await this.Users.AnyAsync(u => u.UserId == userId))
{
Expand All @@ -32,7 +32,7 @@ public async Task SendNotification

StringBuilder builder = new(text);

if (!noPrefix)
if (prefix)
{
// Prepend server name to notification text if enabled
if (ServerConfiguration.Instance.NotificationConfiguration.ShowServerNameInText)
Expand Down

0 comments on commit 7637923

Please sign in to comment.