~singpolyma/biboumi

cfca16bbecac9f14812db6d06588aae60cc55649 — Florent Le Coz 8 years ago 576fb3d
Ability to leave the dummy channel
1 files changed, 6 insertions(+), 1 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +6 -1
@@ 197,7 197,12 @@ void IrcClient::send_part_command(const std::string& chan_name, const std::strin
{
  IrcChannel* channel = this->get_channel(chan_name);
  if (channel->joined == true)
    this->send_message(IrcMessage("PART", {chan_name, status_message}));
    {
      if (chan_name.empty())
        this->bridge->send_muc_leave(Iid(std::string("%") + this->hostname), std::string(this->current_nick), "", true);
      else
        this->send_message(IrcMessage("PART", {chan_name, status_message}));
    }
}

void IrcClient::send_mode_command(const std::string& chan_name, const std::vector<std::string>& arguments)