~singpolyma/biboumi

f7cbe8531dd6bd2f91718ac14a564e21d6a0ef11 — louiz’ 6 years ago c0611c2
Correctly remove the last resource from the channel, in persistent mode

fix #3277
1 files changed, 2 insertions(+), 0 deletions(-)

M src/bridge/bridge.cpp
M src/bridge/bridge.cpp => src/bridge/bridge.cpp +2 -0
@@ 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());