~singpolyma/biboumi

59a73c93ec48e9fe1171956f08a59dd85b90d5fe — louiz’ 7 years ago c65ae47
Do not send an “not-implemented” error when receiving an iq error
1 files changed, 5 insertions(+), 1 deletions(-)

M src/xmpp/biboumi_component.cpp
M src/xmpp/biboumi_component.cpp => src/xmpp/biboumi_component.cpp +5 -1
@@ 289,7 289,7 @@ void BiboumiComponent::handle_message(const Stanza& stanza)
}

// We MUST return an iq, whatever happens, except if the type is
// "result".
// "result" or "error".
// To do this, we use a scopeguard. If an exception is raised somewhere, an
// iq of type error "internal-server-error" is sent. If we handle the
// request properly (by calling a function that registers an iq to be sent


@@ 557,6 557,10 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
            }
        }
    }
  else if (type == "error")
    {
      stanza_error.disable();
    }
  }
  catch (const IRCNotConnected& ex)
    {