mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1396
* Defer account login snomask until after connection registration is complete * Don't send account-notify for pre-registration clients
This commit is contained in:
parent
0e470763a2
commit
c62956f708
2 changed files with 17 additions and 9 deletions
|
|
@ -344,6 +344,9 @@ func (server *Server) playRegistrationBurst(session *Session) {
|
|||
d := c.Details()
|
||||
server.logger.Info("connect", fmt.Sprintf("Client connected [%s] [u:%s] [r:%s]", d.nick, d.username, d.realname))
|
||||
server.snomasks.Send(sno.LocalConnects, fmt.Sprintf("Client connected [%s] [u:%s] [h:%s] [ip:%s] [r:%s]", d.nick, d.username, session.rawHostname, session.IP().String(), d.realname))
|
||||
if d.account != "" {
|
||||
server.sendLoginSnomask(d.nickMask, d.accountName)
|
||||
}
|
||||
|
||||
// send welcome text
|
||||
//NOTE(dan): we specifically use the NICK here instead of the nickmask
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue