summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/relay-buffer.c4
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;
}
/*