From f0c290fd1613aa398f43647bebc27d62e2ea6074 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 15 Jul 2016 22:54:39 +0200 Subject: [PATCH] Permissions module now works properly with Clas Of Clans module, thx rusty --- NadekoBot/Modules/ClashOfClans/ClashOfClansModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Modules/ClashOfClans/ClashOfClansModule.cs b/NadekoBot/Modules/ClashOfClans/ClashOfClansModule.cs index fce926c9..532f3cbb 100644 --- a/NadekoBot/Modules/ClashOfClans/ClashOfClansModule.cs +++ b/NadekoBot/Modules/ClashOfClans/ClashOfClansModule.cs @@ -6,6 +6,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; +using NadekoBot.Modules.Permissions.Classes; namespace NadekoBot.Modules.ClashOfClans { @@ -22,7 +23,9 @@ namespace NadekoBot.Modules.ClashOfClans manager.CreateCommands("", cgb => { - cgb.CreateCommand(Prefix + "createwar") + cgb.AddCheck(PermissionChecker.Instance); + + cgb.CreateCommand(Prefix + "createwar") .Alias(Prefix + "cw") .Description( $"Creates a new war by specifying a size (>10 and multiple of 5) and enemy clan name. |{Prefix}cw 15 The Enemy Clan")