Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.

This commit is contained in:
David Hill 2014-06-10 12:06:19 -04:00
commit 0d4f13d20f
63 changed files with 168 additions and 160 deletions

View file

@ -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;
}