diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-26 23:26:43 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:10 +0100 |
commit | 8744fdfaf31ea8a5ba2efb9af34397ab01bf1369 (patch) | |
tree | f68ea7766b25f5f6e3c1f01d81ef63efb1a11880 | |
parent | 7a8ce6c9ae0fcb7d2a27c8ae05247ac029bc537a (diff) | |
download | weechat-8744fdfaf31ea8a5ba2efb9af34397ab01bf1369.zip |
core: make filter names case sensitive (issue #1872)
-rw-r--r-- | src/gui/gui-filter.c | 2 | ||||
-rw-r--r-- | src/plugins/plugin-api-info.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c index e2642713e..113f8f850 100644 --- a/src/gui/gui-filter.c +++ b/src/gui/gui-filter.c @@ -292,7 +292,7 @@ gui_filter_find_pos (struct t_gui_filter *filter) for (ptr_filter = gui_filters; ptr_filter; ptr_filter = ptr_filter->next_filter) { - if (string_strcasecmp (filter->name, ptr_filter->name) < 0) + if (strcmp (filter->name, ptr_filter->name) < 0) return ptr_filter; } diff --git a/src/plugins/plugin-api-info.c b/src/plugins/plugin-api-info.c index 0eb20b473..abf6c4cbd 100644 --- a/src/plugins/plugin-api-info.c +++ b/src/plugins/plugin-api-info.c @@ -1347,7 +1347,7 @@ plugin_api_infolist_filter_cb (const void *pointer, void *data, ptr_filter = ptr_filter->next_filter) { if (!arguments || !arguments[0] - || string_match (ptr_filter->name, arguments, 0)) + || string_match (ptr_filter->name, arguments, 1)) { if (!gui_filter_add_to_infolist (ptr_infolist, ptr_filter)) { |