diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-04 12:35:10 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-04 12:35:10 +0200 |
commit | 6321669cd51b8c25b430ad7cf50608310d11e0df (patch) | |
tree | 1129134e4223272eb375bcec3c2986db8e1c8ce3 /src/plugins/relay | |
parent | 586e66d6fa42c54c90d6ada094deba305a315430 (diff) | |
download | weechat-6321669cd51b8c25b430ad7cf50608310d11e0df.zip |
relay/remote: clear remote buffer when event "buffer_cleared" is received
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/api/remote/relay-remote-event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/relay/api/remote/relay-remote-event.c b/src/plugins/relay/api/remote/relay-remote-event.c index 22985afdd..cde4c1fc2 100644 --- a/src/plugins/relay/api/remote/relay-remote-event.c +++ b/src/plugins/relay/api/remote/relay-remote-event.c @@ -492,6 +492,9 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer) if (weechat_strcmp (event->name, "buffer_closing") == 0) return WEECHAT_RC_OK; + if (weechat_strcmp (event->name, "buffer_cleared") == 0) + weechat_buffer_clear (event->buffer); + /* for other events, we need a body */ if (!event->json) return WEECHAT_RC_OK; |