1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

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.
This commit is contained in:
Sébastien Helleu
2024-04-04 23:22:29 +02:00
parent 2cf66de423
commit b6647004a5
+2 -2
View File
@@ -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;
}
/*