summaryrefslogtreecommitdiff
path: root/src/core/ignore.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-06-15 19:59:10 +0200
committerAlexander Færøy <ahf@0x90.dk>2014-06-15 19:59:10 +0200
commita68eb46a246bae7821f6c8f987c48180d98737a4 (patch)
tree518969d3708e45ebe0faff022d7f3c8319bd32bf /src/core/ignore.c
parent20cbbe58fefeb3cbb9faec329ba5a8b0478b3047 (diff)
parent8d5142f03291c73937119209e9db1eb418dc26d4 (diff)
downloadirssi-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/ignore.c')
-rw-r--r--src/core/ignore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ignore.c b/src/core/ignore.c
index ef7221b7..a7aa106f 100644
--- a/src/core/ignore.c
+++ b/src/core/ignore.c
@@ -115,7 +115,7 @@ static int ignore_match_pattern(IGNORE_REC *rec, const char *text)
#define ignore_match_server(rec, server) \
((rec)->servertag == NULL || \
- g_strcasecmp((server)->tag, (rec)->servertag) == 0)
+ g_ascii_strcasecmp((server)->tag, (rec)->servertag) == 0)
int ignore_check(SERVER_REC *server, const char *nick, const char *host,
const char *channel, const char *text, int level)
@@ -198,14 +198,14 @@ IGNORE_REC *ignore_find(const char *servertag, const char *mask,
(servertag != NULL && rec->servertag == NULL))
continue;
- if (servertag != NULL && g_strcasecmp(servertag, rec->servertag) != 0)
+ if (servertag != NULL && g_ascii_strcasecmp(servertag, rec->servertag) != 0)
continue;
}
if ((rec->mask == NULL && mask != NULL) ||
(rec->mask != NULL && mask == NULL)) continue;
- if (rec->mask != NULL && g_strcasecmp(rec->mask, mask) != 0)
+ if (rec->mask != NULL && g_ascii_strcasecmp(rec->mask, mask) != 0)
continue;
if ((channels == NULL && rec->channels == NULL))