summaryrefslogtreecommitdiff
path: root/src/irc
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/irc
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/irc')
-rw-r--r--src/irc/core/lag.c2
-rw-r--r--src/irc/proxy/listen.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/core/lag.c b/src/irc/core/lag.c
index 451dddc7..787505f0 100644
--- a/src/irc/core/lag.c
+++ b/src/irc/core/lag.c
@@ -71,7 +71,7 @@ static void sig_unknown_command(IRC_SERVER_REC *server, const char *data)
g_return_if_fail(data != NULL);
params = event_get_params(data, 2, NULL, &cmd);
- if (g_strcasecmp(cmd, "PING") == 0) {
+ if (g_ascii_strcasecmp(cmd, "PING") == 0) {
/* some servers have disabled PING command, don't bother
trying alternative methods to detect lag with these
servers. */
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index 7ad358ce..9c9fb43f 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -165,7 +165,7 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args,
}
if (strcmp(cmd, "PROXY") == 0) {
- if (g_strcasecmp(args, "CTCP ON") == 0) {
+ if (g_ascii_strcasecmp(args, "CTCP ON") == 0) {
/* client wants all ctcps */
client->want_ctcp = 1;
for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) {
@@ -182,7 +182,7 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args,
}
proxy_outdata(client, ":%s NOTICE %s :You're now receiving CTCPs sent to %s\n",
client->proxy_address, client->nick,client->listen->ircnet);
- } else if (g_strcasecmp(args, "CTCP OFF") == 0) {
+ } else if (g_ascii_strcasecmp(args, "CTCP OFF") == 0) {
/* client wants proxy to handle all ctcps */
client->want_ctcp = 0;
proxy_outdata(client, ":%s NOTICE %s :Proxy is now handling itself CTCPs sent to %s\n",