Do not send an “not-implemented” error when receiving an iq error

This commit is contained in:
louiz’
2016-12-12 00:39:56 +01:00
parent c65ae47549
commit 59a73c93ec
+5 -1
View File
@@ -289,7 +289,7 @@ void BiboumiComponent::handle_message(const Stanza& stanza)
} }
// We MUST return an iq, whatever happens, except if the type is // 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 // 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 // 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 // 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) catch (const IRCNotConnected& ex)
{ {