From b21b64bc44cea0fed8635bf2e1b0d0c7e8ef9d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 4 May 2024 08:39:56 +0200 Subject: relay/remote: do not display error if the buffer is not found in a line/nick event --- src/plugins/relay/api/remote/relay-remote-event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/relay/api/remote/relay-remote-event.c b/src/plugins/relay/api/remote/relay-remote-event.c index 8062024cc..bb9fdd4a4 100644 --- a/src/plugins/relay/api/remote/relay-remote-event.c +++ b/src/plugins/relay/api/remote/relay-remote-event.c @@ -140,7 +140,7 @@ RELAY_REMOTE_EVENT_CALLBACK(line) struct timeval tv_date; if (!event->buffer) - return WEECHAT_RC_ERROR; + return WEECHAT_RC_OK; JSON_GET_NUM(event->json, y, -1); JSON_GET_STR(event->json, date); @@ -347,7 +347,7 @@ RELAY_REMOTE_EVENT_CALLBACK(nick_group) long long id; if (!event->buffer) - return WEECHAT_RC_ERROR; + return WEECHAT_RC_OK; if (weechat_strcmp (event->name, "nicklist_group_removing") == 0) { @@ -377,7 +377,7 @@ RELAY_REMOTE_EVENT_CALLBACK(nick) long long id; if (!event->buffer) - return WEECHAT_RC_ERROR; + return WEECHAT_RC_OK; if (weechat_strcmp (event->name, "nicklist_nick_removing") == 0) { -- cgit v1.2.3