Fix #927
This commit is contained in:
		| @@ -199,7 +199,7 @@ namespace NadekoBot.Modules.Gambling | ||||
|                     { | ||||
|                         var wonAmount = winner.AmountBet * (participants.Count - 1); | ||||
|  | ||||
|                         await CurrencyHandler.AddCurrencyAsync(winner.User, "Won a Race", wonAmount, false).ConfigureAwait(false); | ||||
|                         await CurrencyHandler.AddCurrencyAsync(winner.User, "Won a Race", wonAmount, true).ConfigureAwait(false); | ||||
|                         await raceChannel.SendConfirmAsync("Animal Race", $"{winner.User.Mention} as {winner.Animal} **Won the race and {wonAmount}{CurrencySign}!**").ConfigureAwait(false); | ||||
|                     } | ||||
|                     else | ||||
| @@ -248,7 +248,7 @@ namespace NadekoBot.Modules.Gambling | ||||
|                         return; | ||||
|                     } | ||||
|                     if (amount > 0) | ||||
|                         if (!await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)u, "BetRace", amount, true).ConfigureAwait(false)) | ||||
|                         if (!await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)u, "BetRace", amount, false).ConfigureAwait(false)) | ||||
|                         { | ||||
|                             try { await raceChannel.SendErrorAsync($"{u.Mention} You don't have enough {Gambling.CurrencyName}s.").ConfigureAwait(false); } catch { } | ||||
|                             return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user