mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Ignorecase for command names
This commit is contained in:
parent
4b5f90f58c
commit
141613eff5
@ -182,7 +182,7 @@ internal abstract class AbstractReflectionCommand @JvmOverloads constructor(
|
||||
|
||||
internal fun <T> Array<T>.contentEqualsOffset(other: Array<out Any>, length: Int): Boolean {
|
||||
repeat(length) { index ->
|
||||
if (other[index].toString() != this[index]) {
|
||||
if (!other[index].toString().equals(this[index].toString(), ignoreCase = true)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user