From 5c819a2c6c96ce1f3375f4d263ce4943d6a9cdf5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Dec 2021 19:23:28 +0100 Subject: [PATCH] Disallow ',' in nicknames It breaks lists as in `PRIVMSG a,b,c :foo`. --- downstream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downstream.go b/downstream.go index afb6cfc..5a219c6 100644 --- a/downstream.go +++ b/downstream.go @@ -208,8 +208,8 @@ func updateNetworkAttrs(record *Network, attrs irc.Tags, subcommand string) erro // ' ' and ':' break the IRC message wire format, '@' and '!' break prefixes, // '*' and '?' break masks, '$' breaks server masks in PRIVMSG/NOTICE, -// "*" is the reserved nickname for registration -const illegalNickChars = " :@!*?$" +// "*" is the reserved nickname for registration, ',' breaks lists +const illegalNickChars = " :@!*?$," // permanentDownstreamCaps is the list of always-supported downstream // capabilities.