From dfa6cd1b3266eac7d8f96f9e3d05b0ac44bb1baa Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Wed, 28 Sep 2016 22:49:40 +0200 Subject: [PATCH] Fix forgoten change variables' names in go-xmpp --- xmpp/xmpp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmpp/xmpp.go b/xmpp/xmpp.go index 32e8311..4d82cc2 100644 --- a/xmpp/xmpp.go +++ b/xmpp/xmpp.go @@ -139,7 +139,7 @@ func mainXMPP() { if confirmation == nil { reply := v.Response(xmpp.IQTypeError) - reply.PayloadEncode(xmpp.NewError("cancel", xmpp.FeatureNotImplemented, "")) + reply.PayloadEncode(xmpp.NewError("cancel", xmpp.ErrorFeatureNotImplemented, "")) comp.Out <- reply } } @@ -158,7 +158,7 @@ func processConfirm(x interface{}, confirmation *Confirmation) { if mesOK && mes.Error != nil { // Message error errCondition := mes.Error.Condition() - if errCondition == xmpp.ServiceUnavailable { + if errCondition == xmpp.ErrorServiceUnavailable { // unreachable confirmation.ChanReply <- REPLY_UNREACHABLE } else { @@ -168,11 +168,11 @@ func processConfirm(x interface{}, confirmation *Confirmation) { } else if iqOK && iq.Error != nil { // IQ error errCondition := iq.Error.Condition() - if errCondition == xmpp.ServiceUnavailable || errCondition == xmpp.FeatureNotImplemented { + if errCondition == xmpp.ErrorServiceUnavailable || errCondition == xmpp.ErrorFeatureNotImplemented { // send by message if client doesn't implemente it confirmation.JID = strings.SplitN(confirmation.JID, "/", 2)[0] go confirmation.SendConfirmation() - } else if errCondition == xmpp.RemoteServerNotFound { + } else if errCondition == xmpp.ErrorRemoteServerNotFound { // unreachable confirmation.ChanReply <- REPLY_UNREACHABLE } else {