Add client-detached notification in control mode, from Mohsin Kaleem.

This commit is contained in:
nicm
2021-03-16 09:14:58 +00:00
parent 9017af2355
commit 8b800b41c9
4 changed files with 16 additions and 0 deletions

View File

@ -171,6 +171,17 @@ control_notify_client_session_changed(struct client *cc)
}
}
void
control_notify_client_detached(struct client *cc)
{
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
if (CONTROL_SHOULD_NOTIFY_CLIENT(c))
control_write(c, "%%client-detached %s", cc->name);
}
}
void
control_notify_session_renamed(struct session *s)
{