summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/tcp_socket_handler.cpp4
-rw-r--r--src/xmpp/biboumi_component.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/network/tcp_socket_handler.cpp b/src/network/tcp_socket_handler.cpp
index ae23b3c..5e4ae30 100644
--- a/src/network/tcp_socket_handler.cpp
+++ b/src/network/tcp_socket_handler.cpp
@@ -194,7 +194,7 @@ void TCPSocketHandler::send_data(std::string&& data)
if (this->use_tls)
try {
this->tls_send(std::move(data));
- } catch (const Botan::TLS::TLS_Exception& e) {
+ } catch (const Botan::Exception& e) {
this->on_connection_close("TLS error: "s + e.what());
this->close();
return ;
@@ -261,7 +261,7 @@ void TCPSocketHandler::tls_recv()
const bool was_active = this->tls->is_active();
try {
this->tls->received_data(recv_buf, static_cast<size_t>(size));
- } catch (const Botan::TLS::TLS_Exception& e) {
+ } catch (const Botan::Exception& e) {
// May happen if the server sends malformed TLS data (buggy server,
// or more probably we are just connected to a server that sends
// plain-text)
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();