From af1891f3b9c5d8850e40abf47ede2cfbfcf11c10 Mon Sep 17 00:00:00 2001 From: kageru Date: Thu, 31 Oct 2019 12:06:06 +0100 Subject: [PATCH] Fix pacman search output if there are no results --- src/commands/pacman.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/pacman.rs b/src/commands/pacman.rs index 8f0222a..ae16c3f 100644 --- a/src/commands/pacman.rs +++ b/src/commands/pacman.rs @@ -14,7 +14,7 @@ pub fn query_pacman(ctx: Context, msg: Message, args: Vec<&str>) { |_e| EMPTY_RESULT, ); // this is 1 for most packages and 2 if there’s a second version in testing - if response.results.is_empty() { + if response.results.len() != 0 { respond_with_results(msg.channel_id, &response.results, &ctx); return; }