3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 05:19:25 +01:00

don't report PERSISTENCE STATUS in reg burst for anonymous clients

This commit is contained in:
Shivaram Lingamneni 2022-07-16 22:34:21 -04:00
parent 99d27ff737
commit 893922afe0

View File

@ -420,7 +420,7 @@ func (server *Server) playRegistrationBurst(session *Session) {
rb := NewResponseBuffer(session)
server.RplISupport(c, rb)
if session.capabilities.Has(caps.Persistence) {
if d.account != "" && session.capabilities.Has(caps.Persistence) {
reportPersistenceStatus(c, rb)
}
server.Lusers(c, rb)