Removed legacy "IRC" encoding.

This commit is contained in:
Arnavion
2015-01-18 02:10:03 -08:00
parent 5a56f9ea01
commit ee17ec6b4f
6 changed files with 23 additions and 44 deletions

View File

@@ -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);