mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-30 22:08:56 -07:00
Add require-sasl support to KLINE / UBAN on NUH masks
This commit is contained in:
committed by
GitHub
parent
36e5451aa5
commit
21ee867ebb
+1
-1
@@ -428,7 +428,7 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
|
||||
// check KLINEs (#671: ignore KLINEs for loopback connections)
|
||||
if !session.IP().IsLoopback() || session.isTor {
|
||||
isBanned, info := server.klines.CheckMasks(c.AllNickmasks()...)
|
||||
if isBanned {
|
||||
if isBanned && !(info.RequireSASL && session.client.Account() != "") {
|
||||
c.setKlined()
|
||||
c.Quit(info.BanMessage(c.t("You are banned from this server (%s)")), nil)
|
||||
server.logger.Info("connect", session.connID, "Client rejected by k-line", c.NickMaskString())
|
||||
|
||||
Reference in New Issue
Block a user