1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

Fix detecting utf-8 on some networks

This commit is contained in:
TingPing 2013-09-06 14:00:53 -04:00
parent 3a87dedbb5
commit 88afa4afa2

View File

@ -848,7 +848,7 @@ inbound_005 (server * serv, char *word[], const message_tags_data *tags_data)
serv->p_cmp = (void *)g_ascii_strcasecmp;
} else if (strncmp (word[w], "CHARSET=", 8) == 0)
{
if (g_ascii_strcasecmp (word[w] + 8, "UTF-8") == 0)
if (g_ascii_strncasecmp (word[w] + 8, "UTF-8", 5) == 0)
{
server_set_encoding (serv, "UTF-8");
}