muc-bridge users should never persist
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user