Merge pull request #537 from TheAwiteb/dev

🧹 fix case sensitive
This commit is contained in:
Waffle Maybe 2022-03-14 19:09:20 +04:00 committed by GitHub
commit b078107694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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