diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-04 23:22:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-07 13:18:14 +0200 |
commit | b6647004a5ee91fc38829b35e0afb1cdd61867e3 (patch) | |
tree | 9e85243bd2ab84d542e31c31b4863a67778af956 /src/plugins/relay | |
parent | 2cf66de4236ca05024917c183c24f4dede4aa6d9 (diff) | |
download | weechat-b6647004a5ee91fc38829b35e0afb1cdd61867e3.zip |
relay: do not share content of any relay buffer in api and weechat protocols (issue #2066)
This is to prevent infinite loop when connected to a remote which is the
weechat instance itself.
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/relay-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-buffer.c b/src/plugins/relay/relay-buffer.c index 8476504ef..30ac45bbd 100644 --- a/src/plugins/relay/relay-buffer.c +++ b/src/plugins/relay/relay-buffer.c @@ -47,8 +47,8 @@ int relay_buffer_selected_line = 0; int relay_buffer_is_relay (struct t_gui_buffer *buffer) { - return ((relay_raw_buffer && (buffer == relay_raw_buffer)) - || (relay_buffer && (buffer == relay_buffer))) ? 1 : 0; + return (weechat_buffer_get_pointer (buffer, "plugin") == weechat_relay_plugin) ? + 1 : 0; } /* |