diff options
author | Alexander Færøy <ahf@0x90.dk> | 2014-06-15 19:59:10 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2014-06-15 19:59:10 +0200 |
commit | a68eb46a246bae7821f6c8f987c48180d98737a4 (patch) | |
tree | 518969d3708e45ebe0faff022d7f3c8319bd32bf /src/core/masks.c | |
parent | 20cbbe58fefeb3cbb9faec329ba5a8b0478b3047 (diff) | |
parent | 8d5142f03291c73937119209e9db1eb418dc26d4 (diff) | |
download | irssi-a68eb46a246bae7821f6c8f987c48180d98737a4.zip |
Merge pull request #5 from dajohi/master
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/core/masks.c')
-rw-r--r-- | src/core/masks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/masks.c b/src/core/masks.c index 92318765..cc28b3bf 100644 --- a/src/core/masks.c +++ b/src/core/masks.c @@ -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; } |