From 195dd6a1c64489aa5fe9eca2de8ae7af74cf3eec Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Wed, 16 Jan 2019 09:35:00 +0100 Subject: [PATCH] Removed checking of MUC join return value as it doesn't represent the MUC status codes. --- feed-to-muc.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/feed-to-muc.go b/feed-to-muc.go index 18e8e77..3d93273 100644 --- a/feed-to-muc.go +++ b/feed-to-muc.go @@ -13,7 +13,7 @@ import ( "time" "github.com/chilts/sid" - "github.com/mattn/go-xmpp" + xmpp "github.com/mattn/go-xmpp" ) // Variables defined globally as they are used by functions pingMUC @@ -126,16 +126,11 @@ func main() { } // Join the MUC - mucStatus, err := client.JoinMUCNoHistory(config.Muc, config.MucNick) + _, err := client.JoinMUCNoHistory(config.Muc, config.MucNick) if err != nil { log.Fatal(err) } - // Exit if Status is > 300, see https://xmpp.org/registrar/mucstatus.html - if mucStatus > 300 { - os.Exit(mucStatus) - } - // Starting goroutine to ping the server every 30 seconds. go pingServer(client, config.ServerAddress, config.BotJid)