mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
parent
4861ac90b6
commit
4f571c2cf3
4 changed files with 69 additions and 0 deletions
|
|
@ -300,6 +300,13 @@ func (client *Client) Login(account ClientAccount) {
|
|||
return
|
||||
}
|
||||
|
||||
func (client *Client) setAccountName(name string) {
|
||||
// XXX this assumes validation elsewhere
|
||||
client.stateMutex.Lock()
|
||||
defer client.stateMutex.Unlock()
|
||||
client.accountName = name
|
||||
}
|
||||
|
||||
func (client *Client) historyCutoff() (cutoff time.Time) {
|
||||
client.stateMutex.Lock()
|
||||
if client.account != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue