Browse Source

fix #1303

tags/v2.4.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
32fc9f226f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      irc/server.go

+ 3
- 3
irc/server.go View File

@@ -301,6 +301,9 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
301 301
 		return false
302 302
 	}
303 303
 
304
+	// count new user in statistics (before checking KLINEs, see #1303)
305
+	server.stats.Register(c.HasMode(modes.Invisible))
306
+
304 307
 	// check KLINEs
305 308
 	isBanned, info := server.klines.CheckMasks(c.AllNickmasks()...)
306 309
 	if isBanned {
@@ -315,9 +318,6 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
315 318
 		c.SetMode(defaultMode, true)
316 319
 	}
317 320
 
318
-	// count new user in statistics
319
-	server.stats.Register(c.HasMode(modes.Invisible))
320
-
321 321
 	server.playRegistrationBurst(session)
322 322
 	return false
323 323
 }

Loading…
Cancel
Save