mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +01:00
commit
575fcd4aeb
@ -400,12 +400,6 @@ func (channel *Channel) setUserLimit(limit int) {
|
||||
channel.stateMutex.Unlock()
|
||||
}
|
||||
|
||||
func (channel *Channel) Key() string {
|
||||
channel.stateMutex.RLock()
|
||||
defer channel.stateMutex.RUnlock()
|
||||
return channel.key
|
||||
}
|
||||
|
||||
func (channel *Channel) setKey(key string) {
|
||||
channel.stateMutex.Lock()
|
||||
defer channel.stateMutex.Unlock()
|
||||
@ -418,13 +412,6 @@ func (channel *Channel) Founder() string {
|
||||
return channel.registeredFounder
|
||||
}
|
||||
|
||||
func (channel *Channel) DirtyBits() (dirtyBits uint) {
|
||||
channel.stateMutex.Lock()
|
||||
dirtyBits = channel.dirtyBits
|
||||
channel.stateMutex.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func (channel *Channel) HighestUserMode(client *Client) (result modes.Mode) {
|
||||
channel.stateMutex.RLock()
|
||||
clientModes := channel.members[client]
|
||||
|
Loading…
Reference in New Issue
Block a user