summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-01-18 02:10:03 -0800
committerArnavion <arnavion@gmail.com>2015-01-18 02:10:03 -0800
commitee17ec6b4f0d0d198f0a8efa1eaf4e93646140e1 (patch)
tree1f3250faef10d9da12d6f8e1777f0edea8487be7 /src/common/dcc.c
parent5a56f9ea01986dfcb3da856177398a455bf7b38c (diff)
Removed legacy "IRC" encoding.
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 97cd5f14..e44438a5 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -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);