forked from jshiffer/go-xmpp
follow tip.
This commit is contained in:
parent
7f4668977b
commit
514bb10a8e
@ -45,7 +45,7 @@ func main() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
tokens := strings.Split(line, " ", 2)
|
tokens := strings.SplitN(line, " ", 2)
|
||||||
if len(tokens) == 2 {
|
if len(tokens) == 2 {
|
||||||
talk.Send(xmpp.Chat{Remote: tokens[0], Type: "chat", Text: tokens[1]})
|
talk.Send(xmpp.Chat{Remote: tokens[0], Type: "chat", Text: tokens[1]})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user