summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-12-12 00:39:31 +0100
committerlouiz’ <louiz@louiz.org>2016-12-12 00:39:56 +0100
commit59a73c93ec48e9fe1171956f08a59dd85b90d5fe (patch)
tree84aaa5e68d6fc7b9598f65615455a9b05c3da7c6 /src/xmpp
parentc65ae4754921fe1f9888afc30d26ed11d5275258 (diff)
downloadbiboumi-59a73c93ec48e9fe1171956f08a59dd85b90d5fe.tar.gz
biboumi-59a73c93ec48e9fe1171956f08a59dd85b90d5fe.tar.bz2
biboumi-59a73c93ec48e9fe1171956f08a59dd85b90d5fe.tar.xz
biboumi-59a73c93ec48e9fe1171956f08a59dd85b90d5fe.zip
Do not send an “not-implemented” error when receiving an iq error
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/biboumi_component.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index f8d2f1d..246d828 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -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)
{