summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-15 04:44:51 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-15 04:44:51 +0200
commitcfca16bbecac9f14812db6d06588aae60cc55649 (patch)
tree2f5dc3ad9885662384665d8775a39a3138619f37 /src
parent576fb3d132a11ca787f98da67889690b03c7ba8d (diff)
downloadbiboumi-cfca16bbecac9f14812db6d06588aae60cc55649.tar.gz
biboumi-cfca16bbecac9f14812db6d06588aae60cc55649.tar.bz2
biboumi-cfca16bbecac9f14812db6d06588aae60cc55649.tar.xz
biboumi-cfca16bbecac9f14812db6d06588aae60cc55649.zip
Ability to leave the dummy channel
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 7be7cc8..78acce5 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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)