summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/dcc
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-09 12:01:16 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-09 12:01:16 +0000
commit7df46597e17ff7af4a660ab47673fe2cabc91db6 (patch)
tree2e2abd9c8e4de4e7311c0506119142f62a78a2f1 /src/fe-common/irc/dcc
parent496d82ac4843b3dcf8fe64c216470f41f91120d9 (diff)
downloadirssi-7df46597e17ff7af4a660ab47673fe2cabc91db6.zip
Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/dcc')
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-chat.c2
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-get.c2
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-send.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-chat.c b/src/fe-common/irc/dcc/fe-dcc-chat.c
index 7f4d3554..5621580f 100644
--- a/src/fe-common/irc/dcc/fe-dcc-chat.c
+++ b/src/fe-common/irc/dcc/fe-dcc-chat.c
@@ -212,7 +212,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
{
g_return_if_fail(type != NULL);
g_return_if_fail(nick != NULL);
- if (g_strcasecmp(type, "CHAT") != 0) return;
+ if (g_ascii_strcasecmp(type, "CHAT") != 0) return;
printformat(NULL, NULL, MSGLEVEL_DCC,
IRCTXT_DCC_CHAT_NOT_FOUND, nick);
diff --git a/src/fe-common/irc/dcc/fe-dcc-get.c b/src/fe-common/irc/dcc/fe-dcc-get.c
index 8e26ffc4..451463f9 100644
--- a/src/fe-common/irc/dcc/fe-dcc-get.c
+++ b/src/fe-common/irc/dcc/fe-dcc-get.c
@@ -105,7 +105,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
g_return_if_fail(type != NULL);
g_return_if_fail(nick != NULL);
g_return_if_fail(fname != NULL);
- if (g_strcasecmp(type, "GET") != 0) return;
+ if (g_ascii_strcasecmp(type, "GET") != 0) return;
if (fname == '\0') fname = "(ANY)";
printformat(NULL, NULL, MSGLEVEL_DCC,
diff --git a/src/fe-common/irc/dcc/fe-dcc-send.c b/src/fe-common/irc/dcc/fe-dcc-send.c
index a00aba91..1fc43abd 100644
--- a/src/fe-common/irc/dcc/fe-dcc-send.c
+++ b/src/fe-common/irc/dcc/fe-dcc-send.c
@@ -106,7 +106,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
g_return_if_fail(type != NULL);
g_return_if_fail(nick != NULL);
g_return_if_fail(fname != NULL);
- if (g_strcasecmp(type, "SEND") != 0) return;
+ if (g_ascii_strcasecmp(type, "SEND") != 0) return;
if (fname == '\0') fname = "(ANY)";
printformat(NULL, NULL, MSGLEVEL_DCC,