MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / GetAllActiveUsers

Function GetAllActiveUsers

internal/users/users.go:125–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func GetAllActiveUsers() []*UserRecord {
126 userManagerMu.RLock()
127 defer userManagerMu.RUnlock()
128
129 ret := []*UserRecord{}
130 for _, userPtr := range userManager.Users {
131 if !userPtr.isLinkDead {
132 ret = append(ret, userPtr)
133 }
134 }
135
136 return ret
137}
138
139func GetOnlineUserIds() []int {
140 userManagerMu.RLock()

Callers 15

UpdateStatsMethod · 0.92
initFunction · 0.92
HandleWebGMCPMethod · 0.92
HandleIACMethod · 0.92
discordMessageHandlerMethod · 0.92
buildWhoPayloadMethod · 0.92
onJoinLeaveMethod · 0.92
newRoundHandlerMethod · 0.92
mudmailCommandMethod · 0.92
apiAdminSendMudmailMethod · 0.92
coldPopulateCacheMethod · 0.92
RenameZoneForAdminFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected