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/irc | |
parent | 9db89eb8b0daada627f1c5b934e5407d37888371 (diff) | |
download | biboumi-25d46924bc2edd079d4d996d1d76d702d724341e.tar.gz biboumi-25d46924bc2edd079d4d996d1d76d702d724341e.tar.bz2 biboumi-25d46924bc2edd079d4d996d1d76d702d724341e.tar.xz biboumi-25d46924bc2edd079d4d996d1d76d702d724341e.zip |
fix #3260
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(); |