Merge pull request #598 from slingamn/issue572.2

fix #572
This commit is contained in:
Daniel Oaks 2019-07-12 23:26:32 +10:00 committed by GitHub
commit 8974cffe2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -86,12 +86,10 @@ func performNickChange(server *Server, client *Client, target *Client, session *
channel.history.Add(histItem)
}
target.nickTimer.Touch(rb)
if target.Registered() {
client.server.monitorManager.AlertAbout(target, true)
}
// else: Run() will attempt registration immediately after this
target.nickTimer.Touch(rb)
} // else: these will be deferred to the end of registration (see #572)
return true
}

View File

@ -421,6 +421,9 @@ func (server *Server) playRegistrationBurst(session *Session) {
if server.logger.IsLoggingRawIO() {
session.Send(nil, c.server.name, "NOTICE", d.nick, c.t("This server is in debug mode and is logging all user I/O. If you do not wish for everything you send to be readable by the server owner(s), please disconnect."))
}
// #572: defer nick warnings to the end of the registration burst
session.client.nickTimer.Touch(nil)
}
// t returns the translated version of the given string, based on the languages configured by the client.