~singpolyma/biboumi

28065d3d52cc48abd39a8556a0c282014b18f25a — Florent Le Coz 9 years ago 5739d41
Do not disconnect from the IRC server if the dummy channel is joined
1 files changed, 4 insertions(+), 1 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +4 -1
@@ 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()