From 2e76a4e4774fe867bf717f8511f2e60deea5b260 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 18 Jan 2015 02:10:03 -0800 Subject: Removed CP1255-specific handling of server lines. GLib's API is good enough now. --- src/common/server.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/common/server.c') 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"); } -- cgit 1.4.1