forked from External/ergo
parent
d97e964b35
commit
921651f664
4 changed files with 11 additions and 0 deletions
|
|
@ -3334,6 +3334,10 @@ func userHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
|
|||
rb.Add(nil, server.name, ERR_NEEDMOREPARAMS, client.Nick(), "USER", client.t("Not enough parameters"))
|
||||
return false
|
||||
}
|
||||
config := server.Config()
|
||||
if config.Limits.RealnameLen > 0 && len(realname) > config.Limits.RealnameLen {
|
||||
realname = ircmsg.TruncateUTF8Safe(realname, config.Limits.RealnameLen)
|
||||
}
|
||||
|
||||
// #843: we accept either: `USER user:pass@clientid` or `USER user@clientid`
|
||||
if strudelIndex := strings.IndexByte(username, '@'); strudelIndex != -1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue