Browse Source

Fix checking Module Preconditions twice (and none of the command's own)

pull/672/head
Joe4evr 8 years ago
parent
commit
3931b74d20
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Info/CommandInfo.cs

+ 1
- 1
src/Discord.Net.Commands/Info/CommandInfo.cs View File

@@ -90,7 +90,7 @@ namespace Discord.Commands
}
}

foreach (IGrouping<int, PreconditionAttribute> preconditionGroup in Module.Preconditions.GroupBy(p => p.Group))
foreach (IGrouping<int, PreconditionAttribute> preconditionGroup in Preconditions.GroupBy(p => p.Group))
{
if (preconditionGroup.Key == 0)
{


Loading…
Cancel
Save