fix clients rules
This commit is contained in:
parent
c3853fe527
commit
8c67f19066
8
rules.go
8
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user