Skip non-auth users from Who List

This commit is contained in:
Noah 2023-04-01 23:44:15 -07:00
parent 063b3c2f04
commit 2c2d140e57

View File

@ -317,6 +317,9 @@ func (s *Server) SendWhoList() {
)
for _, sub := range subscribers {
if !sub.authenticated {
continue
}
usernames = append(usernames, sub.Username)
userSub[sub.Username] = sub
}