summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-08 18:10:47 +0200
committerlouiz’ <louiz@louiz.org>2017-07-08 18:10:47 +0200
commit9fa1852c7ea094086f45e840fa22cc83d56b744e (patch)
tree9d6d628f6403f3cb375206d406ff869c015c3eaf /src/irc
parent3a95076db40dbdff4b130c5d9b8db81e537a750d (diff)
downloadbiboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.gz
biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.bz2
biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.xz
biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.zip
Send status code='332' on biboumi or IRC server’s shutdown
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 00314b2..67221c5 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -981,7 +981,7 @@ void IrcClient::on_part(const IrcMessage& message)
// channel pointer is now invalid
channel = nullptr;
}
- this->bridge.send_muc_leave(iid, std::move(nick), txt, self);
+ this->bridge.send_muc_leave(iid, std::move(nick), txt, self, true);
}
}
@@ -999,7 +999,7 @@ void IrcClient::on_error(const IrcMessage& message)
if (!channel->joined)
continue;
std::string own_nick = channel->get_self()->nick;
- this->bridge.send_muc_leave(iid, std::move(own_nick), leave_message, true);
+ this->bridge.send_muc_leave(iid, std::move(own_nick), leave_message, true, false);
}
this->channels.clear();
this->send_gateway_message("ERROR: " + leave_message);
@@ -1026,7 +1026,7 @@ void IrcClient::on_quit(const IrcMessage& message)
iid.set_local(chan_name);
iid.set_server(this->hostname);
iid.type = Iid::Type::Channel;
- this->bridge.send_muc_leave(iid, std::move(nick), txt, self);
+ this->bridge.send_muc_leave(iid, std::move(nick), txt, self, false);
}
}
}
@@ -1255,7 +1255,7 @@ void IrcClient::leave_dummy_channel(const std::string& exit_message, const std::
this->dummy_channel.joined = false;
this->dummy_channel.joining = false;
this->dummy_channel.remove_all_users();
- this->bridge.send_muc_leave(Iid("%" + this->hostname, this->chantypes), std::string(this->current_nick), exit_message, true, resource);
+ this->bridge.send_muc_leave(Iid("%" + this->hostname, this->chantypes), std::string(this->current_nick), exit_message, true, true, resource);
}
#ifdef BOTAN_FOUND