Disallow ',' in nicknames

It breaks lists as in `PRIVMSG a,b,c :foo`.

git-svn-id: file:///srv/svn/repo/suika/trunk@751 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-12-06 18:23:28 +00:00
parent c1b86bbf9c
commit 2a56c11036

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.