summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-08 22:09:57 +0100
committerlouiz’ <louiz@louiz.org>2017-03-08 22:09:57 +0100
commit38ff50f5d2ca356f659429ff57546bd2364a0fef (patch)
tree3f7ff07c382758b53681a3e8656fec64f6d6dbee /src
parent27195a9dd48c0adbd82d25270f1a9214a705c7ef (diff)
downloadbiboumi-38ff50f5d2ca356f659429ff57546bd2364a0fef.tar.gz
biboumi-38ff50f5d2ca356f659429ff57546bd2364a0fef.tar.bz2
biboumi-38ff50f5d2ca356f659429ff57546bd2364a0fef.tar.xz
biboumi-38ff50f5d2ca356f659429ff57546bd2364a0fef.zip
Don’t send the unavailable presence to all resources, in the virtual channel
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.cpp2
-rw-r--r--src/irc/irc_client.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 7e2d8c1..701ee11 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -62,7 +62,7 @@ void Bridge::shutdown(const std::string& exit_message)
for (auto it = this->irc_clients.begin(); it != this->irc_clients.end(); ++it)
{
it->second->send_quit_command(exit_message);
- it->second->leave_dummy_channel(exit_message);
+ it->second->leave_dummy_channel(exit_message, "");
}
}
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index d0970c1..9540f7a 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -1161,14 +1161,14 @@ DummyIrcChannel& IrcClient::get_dummy_channel()
return this->dummy_channel;
}
-void IrcClient::leave_dummy_channel(const std::string& exit_message)
+void IrcClient::leave_dummy_channel(const std::string& exit_message, const std::string& resource)
{
if (!this->dummy_channel.joined)
return;
this->dummy_channel.joined = false;
this->dummy_channel.joining = false;
this->dummy_channel.remove_all_users();
- this->bridge.send_muc_leave(Iid("%"s + this->hostname, this->chantypes), std::string(this->current_nick), exit_message, true);
+ this->bridge.send_muc_leave(Iid("%"s + this->hostname, this->chantypes), std::string(this->current_nick), exit_message, true, resource);
}
#ifdef BOTAN_FOUND