summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-16 20:20:38 +0200
committerlouiz’ <louiz@louiz.org>2017-07-16 20:22:23 +0200
commitf7cbe8531dd6bd2f91718ac14a564e21d6a0ef11 (patch)
treead236cdc559d92ae10e148e2287c8dfa21cb2503 /src/bridge
parentc0611c23f0d5962f1d56ca3024e550856cdce1e0 (diff)
downloadbiboumi-f7cbe8531dd6bd2f91718ac14a564e21d6a0ef11.tar.gz
biboumi-f7cbe8531dd6bd2f91718ac14a564e21d6a0ef11.tar.bz2
biboumi-f7cbe8531dd6bd2f91718ac14a564e21d6a0ef11.tar.xz
biboumi-f7cbe8531dd6bd2f91718ac14a564e21d6a0ef11.zip
Correctly remove the last resource from the channel, in persistent mode
fix #3277
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 33006c3..e0cb36d 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -457,6 +457,8 @@ void Bridge::leave_irc_channel(Iid&& iid, const std::string& status_message, con
{
this->send_muc_leave(iid, channel->get_self()->nick, "", true, true, resource);
}
+ if (persistent)
+ this->remove_resource_from_chan(key, resource);
// Since there are no resources left in that channel, we don't
// want to receive private messages using this room's JID
this->remove_all_preferred_from_jid_of_room(iid.get_local());