Better way to leave the dummy room

This commit is contained in:
Florent Le Coz
2014-04-15 04:56:50 +02:00
parent 0d9c1ba313
commit 5739d418e2
5 changed files with 26 additions and 2 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ void Bridge::shutdown()
{
for (auto it = this->irc_clients.begin(); it != this->irc_clients.end(); ++it)
{
it->second->send_quit_command("Gateway shutdown");
const std::string exit_message("Gateway shutdown");
it->second->send_quit_command(exit_message);
it->second->leave_dummy_channel(exit_message);
}
}