Do not disconnect from the IRC server if the dummy channel is joined

This commit is contained in:
Florent Le Coz
2014-04-15 05:08:07 +02:00
parent 5739d418e2
commit 28065d3d52
+4 -1
View File
@@ -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()