Skip non-auth users from Who List

ipad-testing
Noah 2023-04-01 23:44:15 -07:00
parent 063b3c2f04
commit 2c2d140e57
1 changed files with 3 additions and 0 deletions

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
}