summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index e44438a5..b48bd3a8 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -514,8 +514,6 @@ dcc_chat_line (struct DCC *dcc, char *line)
 	message_tags_data no_tags = MESSAGE_TAGS_DATA_INIT;
 
 	len = strlen (line);
-	if (dcc->serv->using_cp1255)
-		len++;	/* include the NUL terminator */
 
 	if (dcc->serv->encoding == NULL)     /* system */
 		utf = g_locale_to_utf8 (line, len, NULL, &utf_len, NULL);
@@ -528,9 +526,6 @@ dcc_chat_line (struct DCC *dcc, char *line)
 		len = utf_len;
 	}
 
-	if (dcc->serv->using_cp1255 && len > 0)
-		len--;
-
 	/* we really need valid UTF-8 now */
 	conv = text_validate (&line, &len);