downstream: re-format illegalNickChars doc comment

This commit is contained in:
Simon Ser 2022-03-03 10:53:33 +01:00
parent c742726316
commit 7b3e46a7c2

View file

@ -207,9 +207,14 @@ func updateNetworkAttrs(record *Network, attrs irc.Tags, subcommand string) erro
return nil
}
// ' ' 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, ',' breaks lists
// illegalNickChars is the list of characters forbidden in a nickname.
//
// ' ' and ':' break the IRC message wire format
// '@' and '!' break prefixes
// '*' breaks masks and is the reserved nickname for registration
// '?' breaks masks
// '$' breaks server masks in PRIVMSG/NOTICE
// ',' breaks lists
const illegalNickChars = " :@!*?$,"
// permanentDownstreamCaps is the list of always-supported downstream