diff options
author | louiz’ <louiz@louiz.org> | 2018-08-26 17:39:16 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-09-29 20:04:42 +0200 |
commit | e560352fcf95ba70891d1a847973160c923fb702 (patch) | |
tree | 714c34103ba77be51e03ba912e8b503a5ce2205f /src/irc | |
parent | bf97478b89b24bbf3a6a92c9137041cf2e987f02 (diff) | |
download | biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.gz biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.bz2 biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.xz biboumi-e560352fcf95ba70891d1a847973160c923fb702.zip |
Force connect to a server when a presence is received on a server JID
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc_client.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index 0b5715e..b72c078 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -481,7 +481,10 @@ void IrcClient::send_topic_command(const std::string& chan_name, const std::stri void IrcClient::send_quit_command(const std::string& reason) { - this->send_message(IrcMessage("QUIT", {reason}), {}, false); + if (!reason.empty()) + this->send_message(IrcMessage("QUIT", {reason}), {}, false); + else + this->send_message(IrcMessage("QUIT", {}), {}, false); } void IrcClient::send_join_command(const std::string& chan_name, const std::string& password) |