1
0
Fork 0
forked from External/ergo

Merge pull request #1414 from slingamn/issue1396_account_snomask

fix #1396
This commit is contained in:
Shivaram Lingamneni 2020-11-29 19:46:12 -08:00 committed by GitHub
commit b4cd62bece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 9 deletions

View file

@ -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