mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Removed legacy "IRC" encoding.
This commit is contained in:
@@ -487,8 +487,7 @@ dcc_write_chat (char *nick, char *text)
|
||||
if (dcc && dcc->dccstat == STAT_ACTIVE)
|
||||
{
|
||||
len = strlen (text);
|
||||
tcp_send_real (NULL, dcc->sok, dcc->serv->encoding, dcc->serv->using_irc,
|
||||
text, len);
|
||||
tcp_send_real (NULL, dcc->sok, dcc->serv->encoding, text, len);
|
||||
send (dcc->sok, "\n", 1, 0);
|
||||
dcc->size += len;
|
||||
fe_dcc_update (dcc);
|
||||
@@ -518,9 +517,7 @@ dcc_chat_line (struct DCC *dcc, char *line)
|
||||
if (dcc->serv->using_cp1255)
|
||||
len++; /* include the NUL terminator */
|
||||
|
||||
if (dcc->serv->using_irc) /* using "IRC" encoding (CP1252/UTF-8 hybrid) */
|
||||
utf = NULL;
|
||||
else if (dcc->serv->encoding == NULL) /* system */
|
||||
if (dcc->serv->encoding == NULL) /* system */
|
||||
utf = g_locale_to_utf8 (line, len, NULL, &utf_len, NULL);
|
||||
else
|
||||
utf = g_convert (line, len, "UTF-8", dcc->serv->encoding, 0, &utf_len, 0);
|
||||
|
||||
Reference in New Issue
Block a user