Fixed hangman bug? Fixed current time in logs

This commit is contained in:
Kwoth 2017-01-12 18:18:16 +01:00
parent 4dc4ab00d8
commit cdad149b0d
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Administration
private static Logger _log { get; }
private static string prettyCurrentTime => $"【{DateTime.Now:HH:mm:ss}】";
private static string currentTime = $"{DateTime.Now:HH:mm:ss}";
private static string currentTime => $"{DateTime.Now:HH:mm:ss}";
public static ConcurrentDictionary<ulong, LogSetting> GuildLogSettings { get; }

View File

@ -45,7 +45,7 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
HangmanObject[] termTypes;
data.TryGetValue(type, out termTypes);
if (termTypes.Length == 0)
if (termTypes == null || termTypes.Length == 0)
return null;
return termTypes[rng.Next(0, termTypes.Length)];