.banktake had ok/error responses flipped. No functional change, closes #409

This commit is contained in:
Kwoth
2023-03-23 16:14:45 +01:00
parent 42f00c08fa
commit 5c03c5ba16

View File

@@ -77,14 +77,14 @@ public partial class Gambling
{
if (await _bank.TakeAsync(userId, amount))
{
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
_client.GetUser(userId)?.ToString()
?? userId.ToString(),
CurrencySign));
await ctx.OkAsync();
return;
}
await ctx.OkAsync();
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
_client.GetUser(userId)?.ToString()
?? userId.ToString(),
CurrencySign));
}
private async Task BankAwardInternalAsync(long amount, ulong userId)