summaryrefslogtreecommitdiffstats
path: root/control-notify.c
diff options
context:
space:
mode:
authornicm <nicm>2021-03-16 09:14:58 +0000
committernicm <nicm>2021-03-16 09:14:58 +0000
commit8b800b41c98c37a270cea61e57d1f2702fd75293 (patch)
tree7a286753c567e479e390b7cfbf24a6b26e66e7e1 /control-notify.c
parent9017af23556abdc31ba37c925adf6e0f1bb12671 (diff)
Add client-detached notification in control mode, from Mohsin Kaleem.
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/control-notify.c b/control-notify.c
index cc706ac2..6ff0e436 100644
--- a/control-notify.c
+++ b/control-notify.c
@@ -172,6 +172,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)
{
struct client *c;