summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 644351e..a84f96e 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -27,7 +27,12 @@ IrcClient::~IrcClient()
void IrcClient::start()
{
- this->connect(this->hostname, "6667");
+ this->bridge->send_xmpp_message(this->hostname, "", std::string("Connecting to ") +
+ this->hostname + ":" + "6667");
+ std::pair<bool, std::string> res = this->connect(this->hostname, "6667");
+ if (!res.first)
+ this->bridge->send_xmpp_message(this->hostname, "",
+ std::string("Connection failed: ") + res.second);
}
void IrcClient::on_connected()