diff --git a/rules.go b/rules.go index 045aa44..095b48f 100644 --- a/rules.go +++ b/rules.go @@ -36,9 +36,11 @@ func resetMsgParsingRules() error { users = append(users, 0) muxClients.RLock() - for id, _ := range clients { - chats = append(chats, id) - users = append(users, id) + for id, c := range clients { + if c.Active { + chats = append(chats, id) + users = append(users, id) + } } muxClients.RUnlock()