Bugfix: extra junk after +/- commands cause crash #20

This commit is contained in:
2019-10-18 07:27:09 -04:00
parent 8f2b2110e0
commit 09c207d4be

View File

@ -649,6 +649,7 @@ func handleInput(viewName string) error {
}
if inputString[:1] == "+" || inputString[:1] == "-" {
cmd := strings.Split(inputString, " ")
cmd[0] = inputString[:1]
RunCommand(cmd...)
} else {
go sendChat(inputString)