mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +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
|
|
@ -69,7 +69,7 @@ NOTIFY_NICK_REC *notify_nick_find(IRC_SERVER_REC *server, const char *nick)
|
|||
for (tmp = mserver->notify_users; tmp != NULL; tmp = tmp->next) {
|
||||
rec = tmp->data;
|
||||
|
||||
if (g_strcasecmp(rec->nick, nick) == 0)
|
||||
if (g_ascii_strcasecmp(rec->nick, nick) == 0)
|
||||
return rec;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ int notifylist_ircnets_match(NOTIFYLIST_REC *rec, const char *ircnet)
|
|||
if (strcmp(ircnet, "*") == 0) return TRUE;
|
||||
|
||||
for (tmp = rec->ircnets; *tmp != NULL; tmp++) {
|
||||
if (g_strcasecmp(*tmp, ircnet) == 0)
|
||||
if (g_ascii_strcasecmp(*tmp, ircnet) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ NOTIFYLIST_REC *notifylist_find(const char *mask, const char *ircnet)
|
|||
NOTIFYLIST_REC *rec = tmp->data;
|
||||
|
||||
/* check mask */
|
||||
if (g_strncasecmp(rec->mask, mask, len) != 0 ||
|
||||
if (g_ascii_strncasecmp(rec->mask, mask, len) != 0 ||
|
||||
(rec->mask[len] != '\0' && rec->mask[len] != '!')) continue;
|
||||
|
||||
/* check ircnet */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue