|
|
|
@ -400,6 +400,9 @@ func main() {
|
|
|
|
|
}
|
|
|
|
|
switch {
|
|
|
|
|
case *flagRaw:
|
|
|
|
|
if message == "" {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
// Send raw XML
|
|
|
|
|
_, err = client.SendOrg(message)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -411,6 +414,9 @@ func main() {
|
|
|
|
|
scanner := bufio.NewScanner(os.Stdin)
|
|
|
|
|
scanner.Scan()
|
|
|
|
|
message = scanner.Text()
|
|
|
|
|
if message == "" {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
for _, recipient := range recipients {
|
|
|
|
|
switch {
|
|
|
|
|
case *flagOx:
|
|
|
|
@ -508,6 +514,9 @@ func main() {
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
for _, recipient := range recipients {
|
|
|
|
|
if message == "" {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
switch {
|
|
|
|
|
case *flagHTTPUpload != "":
|
|
|
|
|
_, err = client.Send(xmpp.Chat{Remote: recipient.Jid,
|
|
|
|
|