Replace missed strncasecmp calls with g_ascii_strncasecmp.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4767 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-14 19:06:32 +00:00 committed by exg
parent dee3b35ba2
commit 31c341ff56

View File

@ -791,11 +791,11 @@ void irc_server_init_isupport(IRC_SERVER_REC *server)
server->max_msgs_in_cmd = 1; server->max_msgs_in_cmd = 1;
/* Not doing WHOIS here until it is clear what it means. */ /* Not doing WHOIS here until it is clear what it means. */
while (*p != '\0') { while (*p != '\0') {
if (!strncasecmp(p, "KICK:", 5)) { if (!g_ascii_strncasecmp(p, "KICK:", 5)) {
server->max_kicks_in_cmd = atoi(p + 5); server->max_kicks_in_cmd = atoi(p + 5);
if (server->max_kicks_in_cmd <= 0) if (server->max_kicks_in_cmd <= 0)
server->max_kicks_in_cmd = 30; server->max_kicks_in_cmd = 30;
} else if (!strncasecmp(p, "PRIVMSG:", 8)) { } else if (!g_ascii_strncasecmp(p, "PRIVMSG:", 8)) {
server->max_msgs_in_cmd = atoi(p + 8); server->max_msgs_in_cmd = atoi(p + 8);
if (server->max_msgs_in_cmd <= 0) if (server->max_msgs_in_cmd <= 0)
server->max_msgs_in_cmd = 30; server->max_msgs_in_cmd = 30;