mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-11-04 07:47:25 +01:00 
			
		
		
		
	add conn ID to SASL auth logline
This commit is contained in:
		
							parent
							
								
									cf7db4bc2a
								
							
						
					
					
						commit
						b6a8cc20c2
					
				@ -223,6 +223,13 @@ func (session *Session) SetAway(awayMessage string) (wasAway, nowAway string) {
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (session *Session) ConnID() string {
 | 
			
		||||
	if session == nil {
 | 
			
		||||
		return "*"
 | 
			
		||||
	}
 | 
			
		||||
	return session.connID
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (client *Client) autoAwayEnabledNoMutex(config *Config) bool {
 | 
			
		||||
	return client.registered && client.alwaysOn &&
 | 
			
		||||
		persistenceEnabled(config.Accounts.Multiclient.AutoAway, client.accountSettings.AutoAway)
 | 
			
		||||
 | 
			
		||||
@ -137,7 +137,7 @@ func sendSuccessfulAccountAuth(service *ircService, client *Client, rb *Response
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	client.server.logger.Info("accounts", "client", details.nick, "logged into account", details.accountName)
 | 
			
		||||
	client.server.logger.Info("accounts", rb.session.ConnID(), details.nick, "logged into account", details.accountName)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (server *Server) sendLoginSnomask(nickMask, accountName string) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user