Fix parse_command_with_prefix case sensitive

This commit is contained in:
TheAwiteb 2022-03-14 17:49:45 +03:00
parent 108f4deb3d
commit b62d85f2b6
No known key found for this signature in database
GPG key ID: 8359BCF038F23DD2

View file

@ -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,
}