Removed mucStatus as the return value is not the status code (see https://github.com/mattn/go-xmpp/issues/103 ).

http_upload
Martin Dosch 6 years ago
parent d5bd444cd1
commit 6376922712

@ -302,15 +302,10 @@ func main() {
for _, recipient := range recipients {
// Join the MUC.
mucStatus, err := client.JoinMUCNoHistory(recipient, *flagResource)
_, err := client.JoinMUCNoHistory(recipient, *flagResource)
if err != nil {
log.Fatal(err)
}
// Exit if Status is > 300, see https://xmpp.org/registrar/mucstatus.html
if mucStatus > 300 {
log.Fatal("Couldn't join MUC. Status:", mucStatus)
}
}
// Send in endless loop (for usage with e.g. "tail -f").

Loading…
Cancel
Save