|
|
|
@ -123,6 +123,7 @@ func main() {
|
|
|
|
|
"Import an existing private OpenPGP key.")
|
|
|
|
|
flagOxDeleteNodes := getopt.BoolLong("ox-delete-nodes", 0, "Delete existing OpenPGP nodes on the server.")
|
|
|
|
|
flagOOBFile := getopt.StringLong("oob-file", 0, "", "URL to send a file as out of band data.")
|
|
|
|
|
flagHeadline := getopt.BoolLong("headline", 0, "Send message as type headline.")
|
|
|
|
|
|
|
|
|
|
// Parse command line flags.
|
|
|
|
|
getopt.Parse()
|
|
|
|
@ -151,6 +152,8 @@ func main() {
|
|
|
|
|
" http upload.")
|
|
|
|
|
case *flagOx && *flagOOBFile != "":
|
|
|
|
|
log.Fatal("No encryption possible for OOB data.")
|
|
|
|
|
case *flagHeadline && *flagChatroom:
|
|
|
|
|
log.Fatal("Can't use message type headline for groupchat messages.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Read recipients from command line and quit if none are specified.
|
|
|
|
@ -404,7 +407,11 @@ func main() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var msgType string
|
|
|
|
|
msgType = strChat
|
|
|
|
|
if *flagHeadline {
|
|
|
|
|
msgType = strHeadline
|
|
|
|
|
} else {
|
|
|
|
|
msgType = strChat
|
|
|
|
|
}
|
|
|
|
|
if *flagChatroom {
|
|
|
|
|
msgType = strGroupchat
|
|
|
|
|
// Join the MUCs.
|
|
|
|
|