Don't receive message on plant, especially not the wrong one

This commit is contained in:
Kwoth 2016-09-08 22:57:59 +02:00
parent a9cf124bca
commit f7ff7a5867
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ namespace NadekoBot.Modules.Games
if (channel == null) if (channel == null)
return; return;
var removed = await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)imsg.Author, "Planted a flower.", 1, true).ConfigureAwait(false); var removed = await CurrencyHandler.RemoveCurrencyAsync((IGuildUser)imsg.Author, "Planted a flower.", 1, false).ConfigureAwait(false);
if (!removed) if (!removed)
{ {
await channel.SendMessageAsync($"You don't have any {Gambling.Gambling.CurrencyName}s.").ConfigureAwait(false); await channel.SendMessageAsync($"You don't have any {Gambling.Gambling.CurrencyName}s.").ConfigureAwait(false);

View File

@ -27,7 +27,7 @@ namespace NadekoBot.Services
} }
if (sendMessage) if (sendMessage)
try { await author.SendMessageAsync($"`You received:` {amount} {Gambling.CurrencySign}\n`Reason:` {reason}").ConfigureAwait(false); } catch { } try { await author.SendMessageAsync($"`You lost:` {amount} {Gambling.CurrencySign}\n`Reason:` {reason}").ConfigureAwait(false); } catch { }
return true; return true;
} }