aboutsummaryrefslogtreecommitdiff
path: root/src/framework/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/command.rs')
-rw-r--r--src/framework/command.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/framework/command.rs b/src/framework/command.rs
index 4e338d4..19b6756 100644
--- a/src/framework/command.rs
+++ b/src/framework/command.rs
@@ -104,15 +104,15 @@ pub fn positions(ctx: &mut Context, msg: &Message, conf: &Configuration) -> Opti
positions.push(x.len());
}
} else {
- for n in conf.prefixes.clone() {
- if msg.content.starts_with(&n) {
+ for n in &conf.prefixes {
+ if msg.content.starts_with(n) {
positions.push(n.len());
}
}
}
} else {
- for n in conf.prefixes.clone() {
- if msg.content.starts_with(&n) {
+ for n in &conf.prefixes {
+ if msg.content.starts_with(n) {
positions.push(n.len());
}
}