Fixes email configurations (#225)

Fixes email configuration and bumps release
This commit is contained in:
Kamron Batman 2020-09-04 22:42:15 -07:00 committed by GitHub
parent 2de5e34303
commit e8fe3852cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 32 deletions

View file

@ -36,7 +36,7 @@ namespace Server
public static string GetSetting(string key, string defaultValue)
{
m_Settings.settings.TryGetValue(key, out var value);
return value == "(-null-)" ? null : value ?? defaultValue;
return value ?? defaultValue;
}
public static int GetSetting(string key, int defaultValue)
@ -139,7 +139,7 @@ namespace Server
if (File.Exists(m_FilePath))
{
Console.Write($"Core: Reading configuration from {m_RelPath}...");
Console.Write($"Core: Reading server configuration from {m_RelPath}...");
m_Settings = JsonConfig.Deserialize<ServerSettings>(m_FilePath);
if (m_Settings == null)
@ -183,7 +183,7 @@ namespace Server
{
Save();
Utility.PushColor(ConsoleColor.Green);
Console.WriteLine($"Core: Configuration saved to {m_RelPath}.");
Console.WriteLine($"Core: Server configuration saved to {m_RelPath}.");
Utility.PopColor();
}
}