summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-chat.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
committerDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
commit0d4f13d20f304927277ad327c714481bc97de48f (patch)
tree0cea195e9fae20e3e10d48c5c829b0e894bdd492 /src/irc/dcc/dcc-chat.c
parent5ca9287182092530dc206fa1af13fbe19cc357d1 (diff)
downloadirssi-0d4f13d20f304927277ad327c714481bc97de48f.zip
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/irc/dcc/dcc-chat.c')
-rw-r--r--src/irc/dcc/dcc-chat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index b3950002..ad1442fc 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -103,7 +103,7 @@ CHAT_DCC_REC *dcc_chat_find_id(const char *id)
CHAT_DCC_REC *dcc = tmp->data;
if (IS_DCC_CHAT(dcc) && dcc->id != NULL &&
- g_strcasecmp(dcc->id, id) == 0)
+ g_ascii_strcasecmp(dcc->id, id) == 0)
return dcc;
}
@@ -121,7 +121,7 @@ static CHAT_DCC_REC *dcc_chat_find_nick(IRC_SERVER_REC *server,
CHAT_DCC_REC *dcc = tmp->data;
if (IS_DCC_CHAT(dcc) && dcc->server == server &&
- g_strcasecmp(dcc->nick, nick) == 0)
+ g_ascii_strcasecmp(dcc->nick, nick) == 0)
return dcc;
}
@@ -562,7 +562,7 @@ static void cmd_dcc_close(char *data, SERVER_REC *server)
next = tmp->next;
if (IS_DCC_CHAT(dcc) && dcc->id != NULL &&
- g_strcasecmp(dcc->id, nick) == 0) {
+ g_ascii_strcasecmp(dcc->id, nick) == 0) {
found = TRUE;
if (!dcc_is_connected(dcc) && IS_IRC_SERVER(server))
dcc_reject(DCC(dcc), IRC_SERVER(server));
@@ -777,7 +777,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
g_return_if_fail(orignick != NULL);
params = event_get_params(data, 1, &nick);
- if (g_strcasecmp(nick, orignick) == 0) {
+ if (g_ascii_strcasecmp(nick, orignick) == 0) {
/* shouldn't happen, but just to be sure irssi doesn't
get into infinite loop */
g_free(params);