From 333a02d015fcea22a7ac5aaec086ec17b8bb195d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 1 Jun 2021 06:25:19 +0100 Subject: Implement support for the IRCv3 UTF8ONLY specification. https://ircv3.net/specs/extensions/utf8-only --- src/common/modes.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common') diff --git a/src/common/modes.c b/src/common/modes.c index 82b466cb..17f9ce99 100644 --- a/src/common/modes.c +++ b/src/common/modes.c @@ -913,6 +913,9 @@ inbound_005 (server * serv, char *word[], const message_tags_data *tags_data) { 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) { /* 12345678901234567 */ -- cgit 1.4.1