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
commit2e76a4e4774fe867bf717f8511f2e60deea5b260 (patch)
tree2ff4c5fff9cd4bf41f9ec9715a9cd93abb72c4e5 /src/common/dcc.c
parentee17ec6b4f0d0d198f0a8efa1eaf4e93646140e1 (diff)
Removed CP1255-specific handling of server lines.
GLib's API is good enough now.
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);