From a9fead5e1a754650c653adcc90696dc7ff5c2eba Mon Sep 17 00:00:00 2001 From: sei-dupdyke Date: Mon, 6 May 2024 11:42:40 -0400 Subject: [PATCH] fixes email off by one #339 --- src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs | 4 ++-- src/Ghosts.Client/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs b/src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs index 80ee139e..0e255ac6 100755 --- a/src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs +++ b/src/Ghosts.Client/Infrastructure/Email/EmailConfiguration.cs @@ -190,14 +190,14 @@ private static List ParseEmail(string raw, int min, int max) var emails = EmailListManager.GetDomainList(); _log.Trace($"Building domain email list: {emails.Count}..."); - for (var i = 0; i <= numberOfRecipients; i++) + for (var i = 0; i < numberOfRecipients; i++) list.Add(emails.PickRandom()); //add outside var numberOfOutsideRecipients = rnd.Next(Program.Configuration.Email.RecipientsOutsideMin, Program.Configuration.Email.RecipientsOutsideMax + 1); var outsideEmails = EmailListManager.GetOutsideList(); _log.Trace($"Building outside email list: {outsideEmails.Count}..."); - for (var i = 0; i <= numberOfOutsideRecipients; i++) + for (var i = 0; i < numberOfOutsideRecipients; i++) list.Add(outsideEmails.PickRandom()); } else diff --git a/src/Ghosts.Client/Properties/AssemblyInfo.cs b/src/Ghosts.Client/Properties/AssemblyInfo.cs index 68f0856f..cdc7d9f1 100755 --- a/src/Ghosts.Client/Properties/AssemblyInfo.cs +++ b/src/Ghosts.Client/Properties/AssemblyInfo.cs @@ -34,4 +34,4 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("8.0.0.0")] [assembly: AssemblyInformationalVersion("8.0.0.0")] -[assembly: AssemblyFileVersion("8.0.16.0")] +[assembly: AssemblyFileVersion("8.0.20.0")]