fixed >gc?

This commit is contained in:
Kwoth 2016-10-11 06:21:43 +02:00
parent 731b6d8ad1
commit c0e20eb079
2 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ namespace NadekoBot.Modules.Administration
} }
catch (Exception) 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(); throw new MigrationException();
} }

View File

@ -161,7 +161,7 @@ namespace NadekoBot.Modules.Games
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
[RequirePermission(GuildPermission.ManageMessages)] [RequirePermission(GuildPermission.ManageMessages)]
public async Task Gencurrency(IUserMessage imsg) public async Task GenCurrency(IUserMessage imsg)
{ {
var channel = (ITextChannel)imsg.Channel; var channel = (ITextChannel)imsg.Channel;
@ -171,7 +171,7 @@ namespace NadekoBot.Modules.Games
var guildConfig = uow.GuildConfigs.For(channel.Id); var guildConfig = uow.GuildConfigs.For(channel.Id);
var toAdd = new GCChannelId() { ChannelId = channel.Id }; var toAdd = new GCChannelId() { ChannelId = channel.Id };
if (guildConfig.GenerateCurrencyChannelIds.Contains(toAdd)) if (!guildConfig.GenerateCurrencyChannelIds.Contains(toAdd))
{ {
guildConfig.GenerateCurrencyChannelIds.Add(toAdd); guildConfig.GenerateCurrencyChannelIds.Add(toAdd);
generationChannels.Add(channel.Id); generationChannels.Add(channel.Id);