mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-10-31 05:47:22 +01:00 
			
		
		
		
	remove some dead code
This commit is contained in:
		
							parent
							
								
									55b21fa86c
								
							
						
					
					
						commit
						1c4f9daae7
					
				| @ -989,20 +989,6 @@ func (client *Client) IdleSeconds() uint64 { | ||||
| 	return uint64(client.IdleTime().Seconds()) | ||||
| } | ||||
| 
 | ||||
| // HasNick returns true if the client's nickname is set (used in registration). | ||||
| func (client *Client) HasNick() bool { | ||||
| 	client.stateMutex.RLock() | ||||
| 	defer client.stateMutex.RUnlock() | ||||
| 	return client.nick != "" && client.nick != "*" | ||||
| } | ||||
| 
 | ||||
| // HasUsername returns true if the client's username is set (used in registration). | ||||
| func (client *Client) HasUsername() bool { | ||||
| 	client.stateMutex.RLock() | ||||
| 	defer client.stateMutex.RUnlock() | ||||
| 	return client.username != "" && client.username != "*" | ||||
| } | ||||
| 
 | ||||
| // SetNames sets the client's ident and realname. | ||||
| func (client *Client) SetNames(username, realname string, fromIdent bool) error { | ||||
| 	limit := client.server.Config().Limits.IdentLen | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Shivaram Lingamneni
						Shivaram Lingamneni