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)
{
_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();
}

View File

@ -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);