Up to 5 repeaters.

This commit is contained in:
Kwoth
2017-01-10 23:12:52 +01:00
parent ef688d096b
commit d7dc7bf3fb
3 changed files with 4 additions and 2 deletions

View File

@@ -188,6 +188,8 @@ namespace NadekoBot.Modules.Administration
{
var gc = uow.GuildConfigs.For(Context.Guild.Id, set => set.Include(x => x.GuildRepeaters));
if (gc.GuildRepeaters.Count >= 5)
return;
gc.GuildRepeaters.Add(toAdd);
await uow.CompleteAsync().ConfigureAwait(false);