muc-bridge users should never persist

This commit is contained in:
Stephen Paul Weber
2021-06-23 22:55:59 -05:00
parent 6de22e8320
commit f14752b06f
+4
View File
@@ -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);