aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/mod.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs
index e1a1fb1..aa32d11 100644
--- a/src/framework/standard/mod.rs
+++ b/src/framework/standard/mod.rs
@@ -1187,11 +1187,14 @@ impl Framework for StandardFramework {
}
}
- if let &Some(ref unrecognised_command) = &self.unrecognised_command {
- let unrecognised_command = unrecognised_command.clone();
- threadpool.execute(move || {
- (unrecognised_command)(&mut context, &message, &unrecognised_command_name);
- });
+ if !(self.configuration.ignore_bots && message.author.bot) {
+
+ if let &Some(ref unrecognised_command) = &self.unrecognised_command {
+ let unrecognised_command = unrecognised_command.clone();
+ threadpool.execute(move || {
+ (unrecognised_command)(&mut context, &message, &unrecognised_command_name);
+ });
+ }
}
}