fixed >gc?
This commit is contained in:
parent
731b6d8ad1
commit
c0e20eb079
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user