forked from External/ergo
fix #511
This commit is contained in:
parent
678c8606b6
commit
dcb3487566
3 changed files with 19 additions and 1 deletions
|
|
@ -574,6 +574,13 @@ func capHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respo
|
|||
}
|
||||
}
|
||||
|
||||
// #511: oragono.io/nope is a fake cap to trap bad clients who blindly request
|
||||
// every offered capability:
|
||||
if toAdd.Has(caps.Nope) {
|
||||
client.Quit(client.t("Requesting the oragono.io/nope CAP is forbidden"), rb.session)
|
||||
return true
|
||||
}
|
||||
|
||||
// update maxlenrest, just in case they altered the maxline cap
|
||||
rb.session.SetMaxlenRest()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue