Fixed moneh abuse
This commit is contained in:
parent
c45b91392f
commit
4235b897f1
@ -47,8 +47,11 @@ namespace NadekoBot.Modules.Gambling
|
||||
amount = 0;
|
||||
|
||||
if (amount > 0)
|
||||
if(!await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)umsg.Author, "BetRace", amount, true).ConfigureAwait(false))
|
||||
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;
|
||||
|
@ -59,7 +59,7 @@ namespace NadekoBot.Modules.Gambling
|
||||
|
||||
if (amount < 1)
|
||||
return;
|
||||
|
||||
// todo update this
|
||||
long userFlowers;
|
||||
using (var uow = DbHandler.UnitOfWork())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user