Disallow ',' in nicknames

It breaks lists as in `PRIVMSG a,b,c :foo`.
This commit is contained in:
Simon Ser 2021-12-06 19:23:28 +01:00
parent 1a78b3d905
commit 5c819a2c6c

View File

@ -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.