1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

core: rename function gui_buffer_search_by_name to gui_buffer_search (issue #2081)

This commit is contained in:
Sébastien Helleu
2024-03-07 07:22:31 +01:00
parent 4ffd62b206
commit c71e6a50eb
8 changed files with 35 additions and 37 deletions
+5 -3
View File
@@ -806,7 +806,7 @@ gui_buffer_new_props_with_id (long long id,
if (!name || !name[0])
return NULL;
if (gui_buffer_search_by_name (plugin_get_name (plugin), name))
if (gui_buffer_search (plugin_get_name (plugin), name))
{
gui_chat_printf (NULL,
_("%sA buffer with same name (%s) already exists"),
@@ -2901,11 +2901,13 @@ gui_buffer_search_by_full_name (const char *full_name)
}
/*
* Searches for a buffer by plugin and name.
* Searches for a buffer by plugin and name, full name or id.
*
* If plugin is "==", the name is used to search by full name.
*/
struct t_gui_buffer *
gui_buffer_search_by_name (const char *plugin, const char *name)
gui_buffer_search (const char *plugin, const char *name)
{
struct t_gui_buffer *ptr_buffer;
int plugin_match, plugin_case_sensitive, name_case_sensitive;