summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-15 05:08:07 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-15 05:08:07 +0200
commit28065d3d52cc48abd39a8556a0c282014b18f25a (patch)
treee28d474f926d300f1b2aaa90aab5842e1c9d5a4e /src
parent5739d418e2b35dfc038fe1a12f8b5c7eeeed6868 (diff)
downloadbiboumi-28065d3d52cc48abd39a8556a0c282014b18f25a.tar.gz
biboumi-28065d3d52cc48abd39a8556a0c282014b18f25a.tar.bz2
biboumi-28065d3d52cc48abd39a8556a0c282014b18f25a.tar.xz
biboumi-28065d3d52cc48abd39a8556a0c282014b18f25a.zip
Do not disconnect from the IRC server if the dummy channel is joined
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index f44821e..55c442b 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -645,7 +645,10 @@ void IrcClient::on_user_mode(const IrcMessage& message)
size_t IrcClient::number_of_joined_channels() const
{
- return this->channels.size();
+ if (this->dummy_channel.joined)
+ return this->channels.size() + 1;
+ else
+ return this->channels.size();
}
DummyIrcChannel& IrcClient::get_dummy_channel()