Skip to content

Commit

Permalink
relay: do not share content of any relay buffer in api and weechat pr…
Browse files Browse the repository at this point in the history
…otocols (issue #2066)

This is to prevent infinite loop when connected to a remote which is the
weechat instance itself.
  • Loading branch information
flashcode committed Apr 7, 2024
1 parent 2cf66de commit b664700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/relay/relay-buffer.c
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit b664700

Please sign in to comment.