fix clients rules

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

View File

@ -36,10 +36,12 @@ func resetMsgParsingRules() error {
users = append(users, 0) users = append(users, 0)
muxClients.RLock() muxClients.RLock()
for id, _ := range clients { for id, c := range clients {
if c.Active {
chats = append(chats, id) chats = append(chats, id)
users = append(users, id) users = append(users, id)
} }
}
muxClients.RUnlock() muxClients.RUnlock()
// commands // commands