- Timestamp:
- Aug 20, 2020, 8:00:58 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r401 r404 57 57 Params: []string{"*", "Invalid username or password"}, 58 58 }} 59 60 const illegalNickChars = " :/@!*?" 59 61 60 62 // permanentDownstreamCaps is the list of always-supported downstream … … 330 332 if err := parseMessageParams(msg, &nick); err != nil { 331 333 return err 334 } 335 if strings.ContainsAny(nick, illegalNickChars) { 336 return ircError{&irc.Message{ 337 Command: irc.ERR_ERRONEUSNICKNAME, 338 Params: []string{dc.nick, nick, "contains illegal characters"}, 339 }} 332 340 } 333 341 if nick == serviceNick { … … 972 980 } 973 981 982 if strings.ContainsAny(nick, illegalNickChars) { 983 return ircError{&irc.Message{ 984 Command: irc.ERR_ERRONEUSNICKNAME, 985 Params: []string{dc.nick, nick, "contains illegal characters"}, 986 }} 987 } 988 974 989 var err error 975 990 dc.forEachNetwork(func(n *network) {
Note:
See TracChangeset
for help on using the changeset viewer.