Fixed moneh abuse

This commit is contained in:
Kwoth 2016-10-13 10:00:46 +02:00
parent c45b91392f
commit 4235b897f1
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,10 @@ namespace NadekoBot.Modules.Gambling
if (amount > 0)
if (!await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)umsg.Author, "BetRace", amount, true).ConfigureAwait(false))
{
try { await channel.SendMessageAsync($"{umsg.Author.Mention} You don't have enough {Gambling.CurrencyName}s.").ConfigureAwait(false); } catch { }
return;
}
AnimalRace ar;

View File

@ -59,7 +59,7 @@ namespace NadekoBot.Modules.Gambling
if (amount < 1)
return;
// todo update this
long userFlowers;
using (var uow = DbHandler.UnitOfWork())
{