Fix string handling for Turkish locale

This commit is contained in:
Berke Viktor
2012-06-16 13:01:47 +02:00
parent ee7dcc5f22
commit 35821f3875
22 changed files with 135 additions and 135 deletions

View File

@@ -475,12 +475,12 @@ process_numeric (session * sess, int n,
}
/* use /NICKSERV */
if (strcasecmp (word[7], "DALnet") == 0 ||
strcasecmp (word[7], "BRASnet") == 0)
if (g_ascii_strcasecmp (word[7], "DALnet") == 0 ||
g_ascii_strcasecmp (word[7], "BRASnet") == 0)
serv->nickservtype = 1;
/* use /NS */
else if (strcasecmp (word[7], "FreeNode") == 0)
else if (g_ascii_strcasecmp (word[7], "FreeNode") == 0)
serv->nickservtype = 2;
goto def;
@@ -1075,9 +1075,9 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
{
text[len - 1] = 0;
text++;
if (strncasecmp (text, "ACTION", 6) != 0)
if (g_ascii_strncasecmp (text, "ACTION", 6) != 0)
flood_check (nick, ip, serv, sess, 0);
if (strncasecmp (text, "DCC ", 4) == 0)
if (g_ascii_strncasecmp (text, "DCC ", 4) == 0)
/* redo this with handle_quotes TRUE */
process_data_init (word[1], word_eol[1], word, word_eol, TRUE, FALSE);
ctcp_handle (sess, to, nick, ip, text, word, word_eol, id);