Implement support for the IRCv3 UTF8ONLY specification.

https://ircv3.net/specs/extensions/utf8-only
This commit is contained in:
Sadie Powell 2021-06-01 06:25:19 +01:00 committed by Patrick
parent 734d888210
commit 333a02d015

View File

@ -913,6 +913,9 @@ inbound_005 (server * serv, char *word[], const message_tags_data *tags_data)
{ {
server_set_encoding (serv, "UTF-8"); server_set_encoding (serv, "UTF-8");
} }
} else if (g_strcmp0 (tokname, "UTF8ONLY") == 0)
{
server_set_encoding (serv, "UTF-8");
} else if (g_strcmp0 (tokname, "NAMESX") == 0) } else if (g_strcmp0 (tokname, "NAMESX") == 0)
{ {
/* 12345678901234567 */ /* 12345678901234567 */