mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
This commit is contained in:
parent
5ca9287182
commit
0d4f13d20f
63 changed files with 168 additions and 160 deletions
|
|
@ -57,7 +57,7 @@ static int check_mask(SERVER_REC *server, const char *mask,
|
|||
}
|
||||
|
||||
return wildcards ? match_wildcards(mask, str) :
|
||||
g_strcasecmp(mask, str) == 0;
|
||||
g_ascii_strcasecmp(mask, str) == 0;
|
||||
}
|
||||
|
||||
int mask_match(SERVER_REC *server, const char *mask,
|
||||
|
|
@ -117,7 +117,7 @@ int masks_match(SERVER_REC *server, const char *masks,
|
|||
mask = g_strdup_printf("%s!%s", nick, address);
|
||||
list = g_strsplit(masks, " ", -1);
|
||||
for (tmp = list; *tmp != NULL; tmp++) {
|
||||
if (g_strcasecmp(*tmp, nick) == 0) {
|
||||
if (g_ascii_strcasecmp(*tmp, nick) == 0) {
|
||||
found = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue