follow tip.

This commit is contained in:
mattn 2011-06-28 10:53:36 +09:00
parent 7f4668977b
commit 514bb10a8e

View File

@ -45,7 +45,7 @@ func main() {
continue
}
tokens := strings.Split(line, " ", 2)
tokens := strings.SplitN(line, " ", 2)
if len(tokens) == 2 {
talk.Send(xmpp.Chat{Remote: tokens[0], Type: "chat", Text: tokens[1]})
}