mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 10:32:31 +02:00
Make the prefix matching case insensitive
This commit is contained in:
parent
befa2c2e08
commit
17021e167c
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ gboolean strarray_find_prefix(char **array, const char *item)
|
||||||
|
|
||||||
index = 0;
|
index = 0;
|
||||||
for (tmp = array; *tmp != NULL; tmp++, index++) {
|
for (tmp = array; *tmp != NULL; tmp++, index++) {
|
||||||
if (g_str_has_prefix(*tmp, item))
|
if (g_str_has_prefix(g_ascii_strdown(*tmp, -1), g_ascii_strdown(item, -1)))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue