Removed some temp code from Transmitter

This commit is contained in:
Rick Falkvinge
2017-01-02 00:55:01 +01:00
parent 5b0ed02e03
commit c1d0ad7f3c
@@ -60,9 +60,11 @@ namespace Swarmops.Utility.Communications
Encoding.UTF8);
// SPECIAL CASE for sandbox mails -- ugly code but wtf
if (person.Identity == 1 && PilotInstallationIds.DevelopmentSandbox == SystemSettings.InstallationId)
if (person.Identity == 1 && PilotInstallationIds.DevelopmentSandbox == SystemSettings.InstallationId && mail.Subject.Contains("|"))
{
mail.To.Add(new MailAddress("test@falkvinge.net", "Swarmops Sandbox Administrator"));
string[] separated = mail.Subject.Split('|');
mail.Subject = separated[1];
mail.To.Add(new MailAddress(separated[0], "Swarmops Sandbox Administrator"));
}
else // regular case to be used... like everywhere else except for the sandbox test
{