add METADATA response when MONITOR triggered

This commit is contained in:
Shivaram Lingamneni 2025-12-01 06:29:56 +00:00
parent 0119bbc36f
commit f91d1d94f6
4 changed files with 22 additions and 5 deletions

View file

@ -430,6 +430,8 @@ func (server *Server) tryRegister(c *Client, session *Session) (exiting bool) {
c.applyPreregMetadata(session)
c.server.monitorManager.AlertAbout(c.Nick(), c.NickCasefolded(), true, c)
// this is not a reattach, so if the client is always-on, this is the first time
// the Client object was created during the current server uptime. mark dirty in
// order to persist the realname and the user modes: