diff options
author | louiz’ <louiz@louiz.org> | 2017-05-02 14:46:03 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-05-02 14:46:03 +0200 |
commit | 25d46924bc2edd079d4d996d1d76d702d724341e (patch) | |
tree | c5f70e398ebf61472071735d1023cf282fc1a332 /src | |
parent | 9db89eb8b0daada627f1c5b934e5407d37888371 (diff) | |
download | biboumi-4.3.tar.gz biboumi-4.3.tar.bz2 biboumi-4.3.tar.xz biboumi-4.3.zip |
fix #3260
Diffstat (limited to 'src')
-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(); |