Removed CP1255-specific handling of server lines.

GLib's API is good enough now.
This commit is contained in:
Arnavion
2015-01-18 02:10:03 -08:00
parent ee17ec6b4f
commit 2e76a4e477
3 changed files with 2 additions and 14 deletions

View File

@@ -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");
}