From 63769227127dd2261146fbb69ffefbd373c1c1e0 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Mon, 13 Aug 2018 20:12:06 +0200 Subject: [PATCH] Removed mucStatus as the return value is not the status code (see https://github.com/mattn/go-xmpp/issues/103 ). --- go-sendxmpp.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/go-sendxmpp.go b/go-sendxmpp.go index 7c74dbf..8138b1b 100644 --- a/go-sendxmpp.go +++ b/go-sendxmpp.go @@ -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").