Skip to content

Commit

Permalink
Check for discrepancies in prefixless groups (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Dec 10, 2020
1 parent 20043d4 commit 692e984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/framework/standard/parse/mod.rs
Expand Up @@ -506,12 +506,14 @@ pub async fn command(
let res = handle_group(stream, ctx, msg, config, subgroups).await;

if !is_unrecognised(&res) {
check_discrepancy(ctx, msg, config, &group.options).await?;
return res;
}

let res = handle_command(stream, ctx, msg, config, commands, group).await;

if !is_unrecognised(&res) {
check_discrepancy(ctx, msg, config, &group.options).await?;
return res;
}

Expand Down

0 comments on commit 692e984

Please sign in to comment.