Restore the connect-time host when a session logs out, reversing any services vhost

This commit is contained in:
Jean Chevronnet 2026-07-20 20:39:03 +00:00
parent 66eb0ea243
commit 8b45d386c6
No known key found for this signature in database
5 changed files with 48 additions and 2 deletions

View file

@ -767,6 +767,9 @@ impl Engine {
if let Some(action) = self.feed("SESS", format!("{} logged out of \x02{account}\x02 ({reason})", self.who(uid))) {
self.emit_irc(action);
}
for act in echo_api::vhost_restore_actions(&self.network, &self.db, uid, account) {
self.emit_irc(act);
}
self.network.clear_account(uid);
self.emit_irc(NetAction::Metadata { target: uid.to_string(), key: "accountname".to_string(), value: String::new() });
if let Some(ns) = self.nick_service.clone() {