forked from External/ergo
Apply default user modes just before registration.
Previously, we were applying defaults before the user had completed registration. This meant that the number of invisible users was incremented when the user connected, and then the total was incremented when registration was completed. Now both counters are updated at the same time. If a user disconnects prior to registration, +i has not yet been applied so it would not be decremented.
This commit is contained in:
parent
c1d4c5596d
commit
0241e0c31d
6 changed files with 37 additions and 25 deletions
|
|
@ -337,7 +337,6 @@ func (server *Server) RunClient(conn IRCConn) {
|
|||
session.idletimer.Initialize(session)
|
||||
session.resetFakelag()
|
||||
|
||||
ApplyUserModeChanges(client, config.Accounts.defaultUserModes, false, nil)
|
||||
if wConn.Secure {
|
||||
client.SetMode(modes.TLS, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue