diff options
author | nicm <nicm> | 2021-03-16 09:14:58 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-03-16 09:14:58 +0000 |
commit | 8b800b41c98c37a270cea61e57d1f2702fd75293 (patch) | |
tree | 7a286753c567e479e390b7cfbf24a6b26e66e7e1 /control-notify.c | |
parent | 9017af23556abdc31ba37c925adf6e0f1bb12671 (diff) | |
download | rtmux-8b800b41c98c37a270cea61e57d1f2702fd75293.tar.gz rtmux-8b800b41c98c37a270cea61e57d1f2702fd75293.tar.bz2 rtmux-8b800b41c98c37a270cea61e57d1f2702fd75293.zip |
Add client-detached notification in control mode, from Mohsin Kaleem.
Diffstat (limited to 'control-notify.c')
-rw-r--r-- | control-notify.c | 11 |
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; |