diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-09-03 12:37:20 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-09-03 12:37:20 +0000 |
commit | d80c8e9e575239553719b4991b40e2dca6e6478e (patch) | |
tree | 6ab848f808bd4301452089eda9784801b706b0b6 /src/irc/irc-recv.c | |
parent | f74b280a1fe2566d1182d1e2180d12a514b3d6c9 (diff) | |
download | weechat-d80c8e9e575239553719b4991b40e2dca6e6478e.zip |
Fixed bug with strings comparison (str[n]casecmp) and some locales (like turkish), now using ASCII comparison
Diffstat (limited to 'src/irc/irc-recv.c')
-rw-r--r-- | src/irc/irc-recv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 781e0db9a..eecefc12d 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -150,7 +150,7 @@ irc_recv_command (t_irc_server *server, char *entire_line, cmd_found = -1; for (i = 0; irc_commands[i].command_name; i++) { - if (strcasecmp (irc_commands[i].command_name, command) == 0) + if (ascii_strcasecmp (irc_commands[i].command_name, command) == 0) { cmd_found = i; break; @@ -929,7 +929,7 @@ irc_cmd_recv_nick (t_irc_server *server, char *host, char *arguments) if ((SERVER(ptr_buffer) == server) && BUFFER_IS_PRIVATE(ptr_buffer)) { if ((CHANNEL(ptr_buffer)->name) - && (strcasecmp (host, CHANNEL(ptr_buffer)->name) == 0)) + && (ascii_strcasecmp (host, CHANNEL(ptr_buffer)->name) == 0)) { free (CHANNEL(ptr_buffer)->name); CHANNEL(ptr_buffer)->name = strdup (arguments); @@ -1104,9 +1104,9 @@ irc_cmd_recv_notice (t_irc_server *server, char *host, char *arguments) gui_printf_color (server->buffer, COLOR_WIN_CHAT, ": "); } gui_printf_color (server->buffer, COLOR_WIN_CHAT, "%s\n", pos); - if ((host) && (strcasecmp (host, "nickserv") != 0) && - (strcasecmp (host, "chanserv") != 0) && - (strcasecmp (host, "memoserv") != 0)) + if ((host) && (ascii_strcasecmp (host, "nickserv") != 0) && + (ascii_strcasecmp (host, "chanserv") != 0) && + (ascii_strcasecmp (host, "memoserv") != 0)) { hotlist_add (HOTLIST_PRIVATE, server->buffer); gui_draw_buffer_status (gui_current_window->buffer, 1); @@ -1789,7 +1789,7 @@ irc_cmd_recv_privmsg (t_irc_server *server, char *host, char *arguments) while (pos_port[0] == ' ') pos_port++; - if (strcasecmp (pos_file, "chat") != 0) + if (ascii_strcasecmp (pos_file, "chat") != 0) { irc_display_prefix (server->buffer, PREFIX_ERROR); gui_printf_nolog (server->buffer, |