some improvements, cleanup trivias and typings when blacklisting a server

This commit is contained in:
Master Kwoth
2016-03-05 12:20:27 +01:00
parent 91affc7cef
commit b8dad9a1cd
7 changed files with 36 additions and 25 deletions

View File

@ -83,7 +83,7 @@ namespace NadekoBot.Classes.Trivia {
ShouldStopGame = true;
await channel.SendMessage("**Trivia game ended**\n" + GetLeaderboard());
TriviaGame throwAwayValue;
Commands.Trivia.runningTrivias.TryRemove(server, out throwAwayValue);
Commands.Trivia.RunningTrivias.TryRemove(server.Id, out throwAwayValue);
}
public async Task StopGame() {