mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
commit
3d89c70c49
@ -1157,7 +1157,7 @@ func (am *AccountManager) applyVHostInfo(client *Client, info VHostInfo) {
|
||||
updated := client.SetVHost(vhost)
|
||||
if updated {
|
||||
// TODO: doing I/O here is kind of a kludge
|
||||
go client.sendChghost(oldNickmask, vhost)
|
||||
go client.sendChghost(oldNickmask, client.Hostname())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -749,13 +749,6 @@ func (client *Client) updateNick(nick, nickCasefolded, skeleton string) {
|
||||
client.updateNickMaskNoMutex()
|
||||
}
|
||||
|
||||
// updateNickMask updates the nickmask.
|
||||
func (client *Client) updateNickMask() {
|
||||
client.stateMutex.Lock()
|
||||
defer client.stateMutex.Unlock()
|
||||
client.updateNickMaskNoMutex()
|
||||
}
|
||||
|
||||
// updateNickMaskNoMutex updates the casefolded nickname and nickmask, not acquiring any mutexes.
|
||||
func (client *Client) updateNickMaskNoMutex() {
|
||||
client.hostname = client.getVHostNoMutex()
|
||||
|
Loading…
Reference in New Issue
Block a user