mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 23:36:37 +02:00
Fix restore of hotlist after /upgrade
This commit is contained in:
@@ -542,7 +542,7 @@ upgrade_weechat_read_cb (void *data,
|
||||
hotlist_reset = 1;
|
||||
}
|
||||
plugin_name = infolist_string (infolist, "plugin_name");
|
||||
buffer_name = infolist_string (infolist, "plugin_name");
|
||||
buffer_name = infolist_string (infolist, "buffer_name");
|
||||
if (plugin_name && buffer_name)
|
||||
{
|
||||
ptr_buffer = gui_buffer_search_by_name (plugin_name,
|
||||
|
||||
+12
-4
@@ -1210,15 +1210,23 @@ gui_buffer_search_by_name (const char *plugin, const char *name)
|
||||
plugin_match = 1;
|
||||
if (plugin && plugin[0])
|
||||
{
|
||||
if (ptr_buffer->plugin)
|
||||
if (ptr_buffer->plugin_name_for_upgrade)
|
||||
{
|
||||
if (strcmp (plugin, ptr_buffer->plugin->name) != 0)
|
||||
if (strcmp (plugin, ptr_buffer->plugin_name_for_upgrade) != 0)
|
||||
plugin_match = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (strcmp (plugin, PLUGIN_CORE) != 0)
|
||||
plugin_match = 0;
|
||||
if (ptr_buffer->plugin)
|
||||
{
|
||||
if (strcmp (plugin, ptr_buffer->plugin->name) != 0)
|
||||
plugin_match = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (strcmp (plugin, PLUGIN_CORE) != 0)
|
||||
plugin_match = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (plugin_match && (strcmp (ptr_buffer->name, name) == 0))
|
||||
|
||||
Reference in New Issue
Block a user