mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-11-03 23:37:22 +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)
 | 
			
		||||
	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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user