fix clients rules

This commit is contained in:
shoopea 2020-02-10 10:44:23 +08:00
parent c3853fe527
commit 8c67f19066

View File

@ -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()