mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 00:18:31 +00:00
lol guess i missed one
This commit is contained in:
parent
3c3791579f
commit
cf238bf650
1 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@ func commandLineConsole() {
|
|||
})
|
||||
|
||||
shell.Register("clientcount", func(args ...string) (string, error) {
|
||||
server.GlobalSubscriptionInfo.RLock()
|
||||
count := len(server.GlobalSubscriptionInfo.Members)
|
||||
server.GlobalSubscriptionInfo.RUnlock()
|
||||
server.GlobalSubscriptionLock.RLock()
|
||||
count := len(server.GlobalSubscriptionInfo)
|
||||
server.GlobalSubscriptionLock.RUnlock()
|
||||
return fmt.Sprintln(count, "clients connected"), nil
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue