mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 09:43:13 +02:00
relay/api: fix buffers synchronization with existing buffers that have been renamed on remote in the meanwhile (closes #2169)
This commit is contained in:
@@ -816,6 +816,8 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
|
||||
/* if buffer exists, set properties, otherwise create buffer */
|
||||
apply_props = 1;
|
||||
ptr_buffer = event->buffer;
|
||||
if (!ptr_buffer)
|
||||
ptr_buffer = relay_remote_event_search_buffer (event->remote, id);
|
||||
if (!ptr_buffer)
|
||||
{
|
||||
if (weechat_asprintf (&full_name, "remote.%s.%s", event->remote->name, name) >= 0)
|
||||
|
||||
Reference in New Issue
Block a user