summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-15 04:56:50 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-15 04:56:50 +0200
commit5739d418e2b35dfc038fe1a12f8b5c7eeeed6868 (patch)
treee428fe413cf62850cb4dcda00bf1d753843177b6 /src/bridge
parent0d9c1ba31336f137202471841fd4fc7ca78a5c11 (diff)
downloadbiboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.gz
biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.bz2
biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.xz
biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.zip
Better way to leave the dummy room
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index da10e28..e874ccb 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -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);
}
}