From b62d85f2b63aa68ede960c2a9f2b39646e83a7ec Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Mon, 14 Mar 2022 17:49:45 +0300 Subject: [PATCH] Fix `parse_command_with_prefix` case sensitive --- src/utils/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/command.rs b/src/utils/command.rs index 41e394f1..cef3e533 100644 --- a/src/utils/command.rs +++ b/src/utils/command.rs @@ -337,7 +337,7 @@ where let command = splited.next()?; let bot = splited.next(); match bot { - Some(name) if name == bot_name.as_ref() => {} + Some(name) if name.eq_ignore_ascii_case(bot_name.as_ref()) => {} None => {} _ => return None, }