bugfix, added option in config to forward messages to all owners.

This commit is contained in:
Master Kwoth
2016-07-11 12:28:43 +02:00
parent f1b839337a
commit 57bc26dd46
3 changed files with 29 additions and 14 deletions

View File

@ -92,7 +92,7 @@ namespace NadekoBot.Modules.Games.Commands
e.Channel.SendMessage($"There is already a {NadekoBot.Config.CurrencyName} in this channel.");
return;
}
var removed = FlowersHandler.RemoveFlowers(e.User, "Planted a flower.", 1);
var removed = FlowersHandler.RemoveFlowers(e.User, "Planted a flower.", 1).GetAwaiter().GetResult();
if (!removed)
{
e.Channel.SendMessage($"You don't have any {NadekoBot.Config.CurrencyName}s.").Wait();