mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 01:30:19 +00:00
Fix string handling for Turkish locale
This commit is contained in:
@@ -572,7 +572,7 @@ dcc_chat_line (struct DCC *dcc, char *line)
|
||||
|
||||
url_check_line (line, len);
|
||||
|
||||
if (line[0] == 1 && !strncasecmp (line + 1, "ACTION", 6))
|
||||
if (line[0] == 1 && !g_ascii_strncasecmp (line + 1, "ACTION", 6))
|
||||
{
|
||||
po = strchr (line + 8, '\001');
|
||||
if (po)
|
||||
@@ -1940,9 +1940,9 @@ find_dcc (char *nick, char *file, int type)
|
||||
{
|
||||
if (!file[0])
|
||||
return dcc;
|
||||
if (!strcasecmp (file, file_part (dcc->file)))
|
||||
if (!g_ascii_strcasecmp (file, file_part (dcc->file)))
|
||||
return dcc;
|
||||
if (!strcasecmp (file, dcc->file))
|
||||
if (!g_ascii_strcasecmp (file, dcc->file))
|
||||
return dcc;
|
||||
}
|
||||
}
|
||||
@@ -2406,7 +2406,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
|
||||
DCC_SIZE size;
|
||||
int psend = 0;
|
||||
|
||||
if (!strcasecmp (type, "CHAT"))
|
||||
if (!g_ascii_strcasecmp (type, "CHAT"))
|
||||
{
|
||||
port = atoi (word[8]);
|
||||
addr = strtoul (word[7], NULL, 10);
|
||||
@@ -2453,7 +2453,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strcasecmp (type, "Resume"))
|
||||
if (!g_ascii_strcasecmp (type, "Resume"))
|
||||
{
|
||||
port = atoi (word[7]);
|
||||
|
||||
@@ -2497,7 +2497,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!strcasecmp (type, "Accept"))
|
||||
if (!g_ascii_strcasecmp (type, "Accept"))
|
||||
{
|
||||
port = atoi (word[7]);
|
||||
dcc = find_dcc_from_port (port, TYPE_RECV);
|
||||
@@ -2507,7 +2507,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!strcasecmp (type, "SEND"))
|
||||
if (!g_ascii_strcasecmp (type, "SEND"))
|
||||
{
|
||||
char *file = file_part (word[6]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user