From c0e20eb07940c0802691b44e03ea260aa7ff8ea1 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 11 Oct 2016 06:21:43 +0200 Subject: [PATCH] fixed >gc? --- src/NadekoBot/Modules/Administration/Commands/Migration.cs | 2 +- src/NadekoBot/Modules/Games/Commands/PlantAndPickCommands.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/Migration.cs b/src/NadekoBot/Modules/Administration/Commands/Migration.cs index 0a486149..23e61e09 100644 --- a/src/NadekoBot/Modules/Administration/Commands/Migration.cs +++ b/src/NadekoBot/Modules/Administration/Commands/Migration.cs @@ -224,7 +224,7 @@ namespace NadekoBot.Modules.Administration } catch (Exception) { - _log.Error("Unknow error while deserializing file config.json, pls check its integrity, aborting migration"); + _log.Error("Unknown error while deserializing file config.json, pls check its integrity, aborting migration"); throw new MigrationException(); } diff --git a/src/NadekoBot/Modules/Games/Commands/PlantAndPickCommands.cs b/src/NadekoBot/Modules/Games/Commands/PlantAndPickCommands.cs index 1c021a03..2b8d8072 100644 --- a/src/NadekoBot/Modules/Games/Commands/PlantAndPickCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/PlantAndPickCommands.cs @@ -161,7 +161,7 @@ namespace NadekoBot.Modules.Games [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageMessages)] - public async Task Gencurrency(IUserMessage imsg) + public async Task GenCurrency(IUserMessage imsg) { var channel = (ITextChannel)imsg.Channel; @@ -171,7 +171,7 @@ namespace NadekoBot.Modules.Games var guildConfig = uow.GuildConfigs.For(channel.Id); var toAdd = new GCChannelId() { ChannelId = channel.Id }; - if (guildConfig.GenerateCurrencyChannelIds.Contains(toAdd)) + if (!guildConfig.GenerateCurrencyChannelIds.Contains(toAdd)) { guildConfig.GenerateCurrencyChannelIds.Add(toAdd); generationChannels.Add(channel.Id);