Hgit in alphabetical order. Fixes.

This commit is contained in:
Kwoth 2016-10-12 17:53:00 +02:00
parent 74d99ff391
commit 25cf4f7b0e
3 changed files with 13 additions and 13 deletions

View File

@ -70,9 +70,9 @@ namespace NadekoBot.Modules.Administration
{
var botConfig = uow.BotConfig.GetOrCreate();
MigrateConfig0_9(uow, botConfig);
//MigratePermissions0_9(uow);
MigratePermissions0_9(uow);
MigrateServerSpecificConfigs0_9(uow);
//MigrateDb0_9(uow);
MigrateDb0_9(uow);
//NOW save it
botConfig.MigrationVersion = 1;

View File

@ -127,7 +127,7 @@ namespace NadekoBot.Modules.Help
var helpstr = new StringBuilder();
var lastModule = "";
foreach (var com in _commands.Commands.GroupBy(c=>c.Text).Select(g=>g.First()))
foreach (var com in _commands.Commands.OrderBy(com=>com.Module.Name).GroupBy(c=>c.Text).Select(g=>g.First()))
{
if (com.Module.Name != lastModule)
{

View File

@ -39,16 +39,16 @@ namespace NadekoBot.Services.Database.Repositories.Impl
public GuildConfig For(ulong guildId)
{
var config = _set
//.Include(gc => gc.FollowedStreams)
// .Include(gc => gc.LogSetting)
// .ThenInclude(ls => ls.IgnoredChannels)
//.Include(gc => gc.LogSetting)
// .ThenInclude(ls => ls.IgnoredVoicePresenceChannelIds)
//.Include(gc => gc.FilterInvitesChannelIds)
//.Include(gc => gc.FilterWordsChannelIds)
//.Include(gc => gc.FilteredWords)
//.Include(gc => gc.GenerateCurrencyChannelIds)
//.Include(gc => gc.CommandCooldowns)
.Include(gc => gc.FollowedStreams)
.Include(gc => gc.LogSetting)
.ThenInclude(ls => ls.IgnoredChannels)
.Include(gc => gc.LogSetting)
.ThenInclude(ls => ls.IgnoredVoicePresenceChannelIds)
.Include(gc => gc.FilterInvitesChannelIds)
.Include(gc => gc.FilterWordsChannelIds)
.Include(gc => gc.FilteredWords)
.Include(gc => gc.GenerateCurrencyChannelIds)
.Include(gc => gc.CommandCooldowns)
.FirstOrDefault(c => c.GuildId == guildId);
if (config == null)