Added linebreaks for long lines.

http_upload
Martin Dosch 6 years ago
parent f9af5a75d3
commit cbf5704988

@ -300,7 +300,8 @@ func main() {
scanner.Scan()
message = scanner.Text()
for _, recipient := range recipients {
_, err = client.Send(xmpp.Chat{Remote: recipient, Type: "groupchat", Text: message})
_, err = client.Send(xmpp.Chat{Remote: recipient,
Type: "groupchat", Text: message})
if err != nil {
log.Fatal(err)
}
@ -309,7 +310,8 @@ func main() {
} else {
// Send the message.
for _, recipient := range recipients {
_, err = client.Send(xmpp.Chat{Remote: recipient, Type: "groupchat", Text: message})
_, err = client.Send(xmpp.Chat{Remote: recipient,
Type: "groupchat", Text: message})
if err != nil {
log.Fatal(err)
}
@ -333,7 +335,8 @@ func main() {
scanner.Scan()
message = scanner.Text()
for _, recipient := range recipients {
_, err = client.Send(xmpp.Chat{Remote: recipient, Type: "chat", Text: message})
_, err = client.Send(xmpp.Chat{Remote: recipient,
Type: "chat", Text: message})
if err != nil {
log.Fatal(err)
}
@ -341,7 +344,8 @@ func main() {
}
} else {
for _, recipient := range recipients {
_, err = client.Send(xmpp.Chat{Remote: recipient, Type: "chat", Text: message})
_, err = client.Send(xmpp.Chat{Remote: recipient, Type: "chat",
Text: message})
if err != nil {
log.Fatal(err)
}

Loading…
Cancel
Save