diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-21 11:36:47 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-21 11:36:47 +0200 |
commit | de62b6456bebd130f98ce6192cd63ff42e654fac (patch) | |
tree | 9c031f6dbc92bc33f7f10307b6b1ed5f928d91fe /src/irc | |
parent | f820d86aadb7a5473bcc0a0a3669732ab0182555 (diff) | |
parent | 25d46924bc2edd079d4d996d1d76d702d724341e (diff) | |
download | biboumi-de62b6456bebd130f98ce6192cd63ff42e654fac.tar.gz biboumi-de62b6456bebd130f98ce6192cd63ff42e654fac.tar.bz2 biboumi-de62b6456bebd130f98ce6192cd63ff42e654fac.tar.xz biboumi-de62b6456bebd130f98ce6192cd63ff42e654fac.zip |
New upstream version 4.3
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc_client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index b0d3a47..de6b089 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -182,6 +182,11 @@ void IrcClient::start() { if (this->is_connecting() || this->is_connected()) return; + if (this->ports_to_try.empty()) + { + this->bridge.send_xmpp_message(this->hostname, "", "Can not connect to IRC server: no port specified."); + return; + } std::string port; bool tls; std::tie(port, tls) = this->ports_to_try.top(); |