mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 17:50:19 +00:00
Fix string handling for Turkish locale
This commit is contained in:
@@ -73,7 +73,7 @@ ctcp_check (session *sess, char *nick, char *word[], char *word_eol[],
|
||||
while (list)
|
||||
{
|
||||
pop = (struct popup *) list->data;
|
||||
if (!strcasecmp (ctcp, pop->name))
|
||||
if (!g_ascii_strcasecmp (ctcp, pop->name))
|
||||
{
|
||||
ctcp_reply (sess, nick, word, word_eol, pop->cmd);
|
||||
ret = 1;
|
||||
@@ -97,7 +97,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
ctcp_offset = 3;
|
||||
|
||||
/* consider DCC to be different from other CTCPs */
|
||||
if (!strncasecmp (msg, "DCC", 3))
|
||||
if (!g_ascii_strncasecmp (msg, "DCC", 3))
|
||||
{
|
||||
/* but still let CTCP replies override it */
|
||||
if (!ctcp_check (sess, nick, word, word_eol, word[4] + ctcp_offset))
|
||||
@@ -110,7 +110,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
|
||||
/* consider ACTION to be different from other CTCPs. Check
|
||||
ignore as if it was a PRIV/CHAN. */
|
||||
if (!strncasecmp (msg, "ACTION ", 7))
|
||||
if (!g_ascii_strncasecmp (msg, "ACTION ", 7))
|
||||
{
|
||||
if (is_channel (serv, to))
|
||||
{
|
||||
@@ -135,7 +135,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
if (ignore_check (word[1], IG_CTCP))
|
||||
return;
|
||||
|
||||
if (!strcasecmp (msg, "VERSION") && !prefs.hidever)
|
||||
if (!g_ascii_strcasecmp (msg, "VERSION") && !prefs.hidever)
|
||||
{
|
||||
#ifdef WIN32
|
||||
snprintf (outbuf, sizeof (outbuf), "VERSION XChat-WDK "PACKAGE_VERSION" [x%d] / %s",
|
||||
@@ -149,7 +149,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
|
||||
if (!ctcp_check (sess, nick, word, word_eol, word[4] + ctcp_offset))
|
||||
{
|
||||
if (!strncasecmp (msg, "SOUND", 5))
|
||||
if (!g_ascii_strncasecmp (msg, "SOUND", 5))
|
||||
{
|
||||
po = strchr (word[5], '\001');
|
||||
if (po)
|
||||
|
||||
Reference in New Issue
Block a user