From 6ba5241054beaa596aafc853788c89ff66c75667 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Fri, 19 Apr 2024 15:30:11 +0200 Subject: [PATCH] Advertise UTF8ONLY ISUPPORT token We already return an ERROR on non-UTF8 message. The spec recommends FAIL, but does not require it. --- sable_ircd/src/server/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sable_ircd/src/server/mod.rs b/sable_ircd/src/server/mod.rs index 66e50bfc..0cdcf009 100644 --- a/sable_ircd/src/server/mod.rs +++ b/sable_ircd/src/server/mod.rs @@ -178,6 +178,9 @@ impl ClientServer { ret.add(ISupportEntry::simple("INVEX")); ret.add(ISupportEntry::simple("FNC")); + // https://ircv3.net/specs/extensions/utf8-only + ret.add(ISupportEntry::simple("UTF8ONLY")); + ret.add(ISupportEntry::int( "MONITOR", config.monitor.max_per_connection.into(),