mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
history replay enhancements
This commit is contained in:
parent
f3d138d909
commit
2c7c8fbaf9
18 changed files with 264 additions and 255 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue