From 893922afe098c371dcadc66fad1fd7153de4c7cc Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sat, 16 Jul 2022 22:34:21 -0400 Subject: [PATCH] don't report PERSISTENCE STATUS in reg burst for anonymous clients --- irc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/server.go b/irc/server.go index 221635cf..e79e012f 100644 --- a/irc/server.go +++ b/irc/server.go @@ -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)