mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 17:58:15 -07:00
history replay enhancements
This commit is contained in:
+1
-7
@@ -259,13 +259,7 @@ func (channel *Channel) Members() (result []*Client) {
|
||||
return channel.membersCache
|
||||
}
|
||||
|
||||
func (channel *Channel) UserLimit() uint64 {
|
||||
channel.stateMutex.RLock()
|
||||
defer channel.stateMutex.RUnlock()
|
||||
return channel.userLimit
|
||||
}
|
||||
|
||||
func (channel *Channel) setUserLimit(limit uint64) {
|
||||
func (channel *Channel) setUserLimit(limit int) {
|
||||
channel.stateMutex.Lock()
|
||||
channel.userLimit = limit
|
||||
channel.stateMutex.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user