forked from External/ergo
restore transition mechanism
This commit is contained in:
parent
6f8711da3b
commit
77184c1625
2 changed files with 12 additions and 0 deletions
|
|
@ -430,6 +430,13 @@ func (client *Client) UpdateActive(session *Session) {
|
|||
session.lastActive = now
|
||||
}
|
||||
|
||||
func (client *Client) Realname() string {
|
||||
client.stateMutex.RLock()
|
||||
result := client.realname
|
||||
client.stateMutex.RUnlock()
|
||||
return result
|
||||
}
|
||||
|
||||
func (channel *Channel) Name() string {
|
||||
channel.stateMutex.RLock()
|
||||
defer channel.stateMutex.RUnlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue