1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

core: make weelist position case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-21 20:27:14 +01:00
parent 411fe0b0ef
commit 54ed4c6a18
+2 -2
View File
@@ -101,9 +101,9 @@ weelist_insert (struct t_weelist *weelist, struct t_weelist_item *item,
{
/* search position for new element, according to pos asked */
pos_item = NULL;
if (string_strcasecmp (where, WEECHAT_LIST_POS_BEGINNING) == 0)
if (string_strcmp (where, WEECHAT_LIST_POS_BEGINNING) == 0)
pos_item = weelist->items;
else if (string_strcasecmp (where, WEECHAT_LIST_POS_END) == 0)
else if (string_strcmp (where, WEECHAT_LIST_POS_END) == 0)
pos_item = NULL;
else
pos_item = weelist_find_pos (weelist, item->data);