diff options
Diffstat (limited to 'src/plugins/relay/api')
-rw-r--r-- | src/plugins/relay/api/relay-api-msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/api/relay-api-msg.c b/src/plugins/relay/api/relay-api-msg.c index 9ef294dae..d02868301 100644 --- a/src/plugins/relay/api/relay-api-msg.c +++ b/src/plugins/relay/api/relay-api-msg.c @@ -560,7 +560,7 @@ relay_api_msg_lines_to_json (struct t_gui_buffer *buffer, ptr_line = weechat_hdata_pointer (relay_hdata_lines, ptr_lines, "last_line"); if (ptr_line) { - for (i = 1; i < lines * -1; i++) + for (i = -1; i > lines; i--) { ptr_line = weechat_hdata_move (relay_hdata_line, ptr_line, -1); if (!ptr_line) |