mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 12:23:46 -07:00
follow tip.
This commit is contained in:
+1
-1
@@ -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]})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user