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
+3
View File
@@ -645,6 +645,9 @@ void IrcClient::on_user_mode(const IrcMessage& message)
size_t IrcClient::number_of_joined_channels() const
{
if (this->dummy_channel.joined)
return this->channels.size() + 1;
else
return this->channels.size();
}