mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
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:
parent
dee3b35ba2
commit
31c341ff56
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue