From 54ed4c6a183e3bb4b29f4bb9c56c0a0485d01785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 21 Jan 2023 20:27:14 +0100 Subject: [PATCH] core: make weelist position case sensitive (issue #1872) --- src/core/wee-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/wee-list.c b/src/core/wee-list.c index df9f26794..34cf18139 100644 --- a/src/core/wee-list.c +++ b/src/core/wee-list.c @@ -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);