summaryrefslogtreecommitdiff
path: root/src/core/wee-list.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-21 20:27:14 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:14:02 +0100
commit54ed4c6a183e3bb4b29f4bb9c56c0a0485d01785 (patch)
treeddc1c880b051f18f2229a2cd48183135a31797a3 /src/core/wee-list.c
parent411fe0b0efe05c2fd64baa2cfcd6b2ac7781bd79 (diff)
downloadweechat-54ed4c6a183e3bb4b29f4bb9c56c0a0485d01785.zip
core: make weelist position case sensitive (issue #1872)
Diffstat (limited to 'src/core/wee-list.c')
-rw-r--r--src/core/wee-list.c4
1 files 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);