mirror of https://github.com/velour/catbase.git
Fix help command to only respond when there is a space afterwards
This commit is contained in:
parent
2a702c7061
commit
dc793a18c9
|
@ -21,7 +21,7 @@ func (b *Bot) MsgReceived(msg Message) {
|
|||
// msg := b.buildMessage(client, inMsg)
|
||||
// do need to look up user and fix it
|
||||
|
||||
if strings.HasPrefix(msg.Body, "help") && msg.Command {
|
||||
if strings.HasPrefix(msg.Body, "help ") && msg.Command {
|
||||
parts := strings.Fields(strings.ToLower(msg.Body))
|
||||
b.checkHelp(msg.Channel, parts)
|
||||
goto RET
|
||||
|
|
Loading…
Reference in New Issue