3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00
This commit is contained in:
Shivaram Lingamneni 2019-02-15 13:27:02 -05:00
parent 355491d4e1
commit a5f04495a1
2 changed files with 1 additions and 8 deletions

View File

@ -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())
} }
} }

View File

@ -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()