forked from External/ergo
parent
8c68b9f8d7
commit
30f6e11698
6 changed files with 105 additions and 66 deletions
|
|
@ -352,3 +352,10 @@ func (channel *Channel) DirtyBits() (dirtyBits uint) {
|
|||
channel.stateMutex.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func (channel *Channel) HighestUserMode(client *Client) (result modes.Mode) {
|
||||
channel.stateMutex.RLock()
|
||||
clientModes := channel.members[client]
|
||||
channel.stateMutex.RUnlock()
|
||||
return clientModes.HighestChannelUserMode()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue