Commit f7cbe853 authored by louiz’'s avatar louiz’

Correctly remove the last resource from the channel, in persistent mode

fix #3277
parent c0611c23
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment