From 8b800b41c98c37a270cea61e57d1f2702fd75293 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 16 Mar 2021 09:14:58 +0000 Subject: Add client-detached notification in control mode, from Mohsin Kaleem. --- control-notify.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'control-notify.c') diff --git a/control-notify.c b/control-notify.c index cc706ac2..6ff0e436 100644 --- a/control-notify.c +++ b/control-notify.c @@ -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) { -- cgit