diff --git a/irc/server.go b/irc/server.go index 11e8ddd7..bd83423e 100644 --- a/irc/server.go +++ b/irc/server.go @@ -301,6 +301,9 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) { return false } + // count new user in statistics (before checking KLINEs, see #1303) + server.stats.Register(c.HasMode(modes.Invisible)) + // check KLINEs isBanned, info := server.klines.CheckMasks(c.AllNickmasks()...) if isBanned { @@ -315,9 +318,6 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) { c.SetMode(defaultMode, true) } - // count new user in statistics - server.stats.Register(c.HasMode(modes.Invisible)) - server.playRegistrationBurst(session) return false }