~singpolyma/biboumi

f14752b06f36799a95a7fd52cef8707ded52a89d — Stephen Paul Weber a month ago 6de22e8 master
muc-bridge users should never persist
1 files changed, 4 insertions(+), 0 deletions(-)

M src/bridge/bridge.cpp
M src/bridge/bridge.cpp => src/bridge/bridge.cpp +4 -0
@@ 444,6 444,10 @@ void Bridge::leave_irc_channel(Iid&& iid, const std::string& status_message, con
          persistent = coptions.col<Database::Persistent>();
        }
#endif
      if (persistent) {
        std::string domain = this->user_jid.substr(this->user_jid.find("@")+1);
        if (domain == "muc-bridge.cheogram.com" ) persistent = false;
      }
      if (channel->joined && !channel->parting && !persistent)
        {
          irc->send_part_command(iid.get_local(), status_message);