summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2021-01-15 12:34:30 +0100
committerlouiz’ <louiz@louiz.org>2021-01-15 12:34:30 +0100
commit80c5a0e150f8d7b165e1681252ac2a09dd3649c7 (patch)
tree760d5fc4dde820911744fecdc0de55d6e5e6f7d3
parenta4512cd3ae7294cf8872fd45e4b4783bddd48ec4 (diff)
downloadbiboumi-80c5a0e150f8d7b165e1681252ac2a09dd3649c7.tar.gz
biboumi-80c5a0e150f8d7b165e1681252ac2a09dd3649c7.tar.bz2
biboumi-80c5a0e150f8d7b165e1681252ac2a09dd3649c7.tar.xz
biboumi-80c5a0e150f8d7b165e1681252ac2a09dd3649c7.zip
Use recipient-unavailable when we are not connected to the IRC server
Instead of remote-server-not-found See #3427
-rw-r--r--src/xmpp/biboumi_component.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 6e579cc..3cfa9d0 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -264,7 +264,7 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
{
if (type != "unavailable")
this->send_stanza_error("presence", from_str, to_str, id,
- "cancel", "remote-server-not-found",
+ "cancel", "recipient-unavailable",
"Not connected to IRC server " + ex.hostname,
true);
}
@@ -396,7 +396,7 @@ void BiboumiComponent::handle_message(const Stanza& stanza)
} catch (const IRCNotConnected& ex)
{
this->send_stanza_error("message", from_str, to_str, id,
- "cancel", "remote-server-not-found",
+ "cancel", "recipient-unavailable",
"Not connected to IRC server " + ex.hostname,
true);
}
@@ -717,7 +717,7 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
catch (const IRCNotConnected& ex)
{
this->send_stanza_error("iq", from, to_str, id,
- "cancel", "remote-server-not-found",
+ "cancel", "recipient-unavailable",
"Not connected to IRC server " + ex.hostname,
true);
stanza_error.disable();