mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
fix #389
This commit is contained in:
parent
355491d4e1
commit
a5f04495a1
@ -1157,7 +1157,7 @@ func (am *AccountManager) applyVHostInfo(client *Client, info VHostInfo) {
|
|||||||
updated := client.SetVHost(vhost)
|
updated := client.SetVHost(vhost)
|
||||||
if updated {
|
if updated {
|
||||||
// TODO: doing I/O here is kind of a kludge
|
// 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()
|
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.
|
// updateNickMaskNoMutex updates the casefolded nickname and nickmask, not acquiring any mutexes.
|
||||||
func (client *Client) updateNickMaskNoMutex() {
|
func (client *Client) updateNickMaskNoMutex() {
|
||||||
client.hostname = client.getVHostNoMutex()
|
client.hostname = client.getVHostNoMutex()
|
||||||
|
Loading…
Reference in New Issue
Block a user