summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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()