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
1 changed files with 2 additions and 2 deletions

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 the IRC message wire format, '@' and '!' break prefixes,
// '*' and '?' break masks, '$' breaks server masks in PRIVMSG/NOTICE, // '*' and '?' break masks, '$' breaks server masks in PRIVMSG/NOTICE,
// "*" is the reserved nickname for registration // "*" is the reserved nickname for registration, ',' breaks lists
const illegalNickChars = " :@!*?$" const illegalNickChars = " :@!*?$,"
// permanentDownstreamCaps is the list of always-supported downstream // permanentDownstreamCaps is the list of always-supported downstream
// capabilities. // capabilities.