Fix HasCommand()

It was not working if the command had an argument
This commit is contained in:
Ryan Cavicchioni 2022-08-26 17:55:51 -05:00
parent c01db1abf1
commit 424b191ebc
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -59,7 +59,7 @@ func HasCommand(s, prefix, cmd string) bool {
return false
}
if s[1:] == cmd {
if strings.HasPrefix(s[1:], cmd) {
return true
}