forked from External/ergo
Basic EXTJWT support
This commit is contained in:
parent
6ff6225c1e
commit
0bbb5d121d
10 changed files with 121 additions and 3 deletions
|
|
@ -539,6 +539,17 @@ func (channel *Channel) ClientPrefixes(client *Client, isMultiPrefix bool) strin
|
|||
}
|
||||
}
|
||||
|
||||
func (channel *Channel) ClientModeStrings(client *Client) []string {
|
||||
channel.stateMutex.RLock()
|
||||
defer channel.stateMutex.RUnlock()
|
||||
modes, present := channel.members[client]
|
||||
if !present {
|
||||
return []string{}
|
||||
} else {
|
||||
return modes.Strings()
|
||||
}
|
||||
}
|
||||
|
||||
func (channel *Channel) ClientHasPrivsOver(client *Client, target *Client) bool {
|
||||
channel.stateMutex.RLock()
|
||||
founder := channel.registeredFounder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue