Hangman bug fixed

This commit is contained in:
Kwoth 2016-12-28 08:32:55 +01:00
parent aa49c5608b
commit d3ced15d50

View File

@ -44,7 +44,8 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
.Concat(data.Things) .Concat(data.Things)
.ToList(); .ToList();
} }
catch (Exception ex) { catch (Exception ex)
{
Console.WriteLine(ex); Console.WriteLine(ex);
} }
} }
@ -150,7 +151,6 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
} }
catch { } catch { }
} }
}
if (!(char.IsLetter(msg.Content[0]) || char.IsDigit(msg.Content[0])))// and a letter or a digit if (!(char.IsLetter(msg.Content[0]) || char.IsDigit(msg.Content[0])))// and a letter or a digit
return; return;
@ -200,6 +200,7 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
} }
} }
}
catch (Exception ex) { _log.Warn(ex); } catch (Exception ex) { _log.Warn(ex); }
} }