aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-10-15 20:48:49 +0200
committerGitHub <[email protected]>2018-10-15 20:48:49 +0200
commit6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6 (patch)
treec21576ee8bf06c0e2f208a499a6aa900907e186f /src/framework/standard/command.rs
parentAdd Option to disable bypassing Checks for Owners (#419) (diff)
downloadserenity-6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6.tar.xz
serenity-6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6.zip
Prefix only Command (#416)
Diffstat (limited to 'src/framework/standard/command.rs')
-rw-r--r--src/framework/standard/command.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs
index 3a787ae..7757f91 100644
--- a/src/framework/standard/command.rs
+++ b/src/framework/standard/command.rs
@@ -379,7 +379,8 @@ pub fn positions(ctx: &mut Context, msg: &Message, conf: &Configuration) -> Opti
// If the above do not fill `positions`, then that means no kind of prefix was present.
// Check if a no-prefix-execution is applicable.
- if conf.no_dm_prefix && private && positions.is_empty() {
+ if conf.no_dm_prefix && private && positions.is_empty() &&
+ !(conf.ignore_bots && msg.author.bot) {
positions.push(0);
}
}