Fix HasCommand()
It was not working if the command had an argument
This commit is contained in:
parent
c01db1abf1
commit
424b191ebc
@ -59,7 +59,7 @@ func HasCommand(s, prefix, cmd string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if s[1:] == cmd {
|
if strings.HasPrefix(s[1:], cmd) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user