summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/common/server.c b/src/common/server.c
index bf860ac1..75192dfa 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1754,7 +1754,6 @@ server_set_encoding (server *serv, char *new_encoding)
 		g_free (serv->encoding);
 		/* can be left as NULL to indicate system encoding */
 		serv->encoding = NULL;
-		serv->using_cp1255 = FALSE;
 	}
 
 	if (new_encoding)
@@ -1766,14 +1765,9 @@ server_set_encoding (server *serv, char *new_encoding)
 		if (space)
 			space[0] = 0;
 
-		/* server_inline() uses this flag */
-		if (g_ascii_strcasecmp (serv->encoding, "CP1255") == 0 || g_ascii_strcasecmp (serv->encoding, "WINDOWS-1255") == 0)
+		/* Default legacy "IRC" encoding to utf-8. */
+		if (g_ascii_strcasecmp (serv->encoding, "IRC") == 0)
 		{
-			serv->using_cp1255 = TRUE;
-		}
-		else if (g_ascii_strcasecmp (serv->encoding, "IRC") == 0)
-		{
-			/* Default legacy "IRC" encoding to utf-8. */
 			g_free (serv->encoding);
 			serv->encoding = g_strdup ("UTF-8");
 		}