summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/api/remote/relay-remote-event.c3
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;