aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 3f69a3b..8eac09c 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -36,7 +36,7 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework {
result.help(&help::HELP).unrecognised_command(|ctx, msg, unrec| {
Box::pin(async move {
- let url = match msg.content.split_whitespace().skip(1).next() {
+ let url = match msg.content.split_whitespace().nth(1) {
Some(x) if x.starts_with("http") => x,
_ => {
info!("bad command formatting: '{}'", unrec);