mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-10-31 05:47:22 +01:00 
			
		
		
		
	fix UBAN INFO considering the wrong IP
This commit is contained in:
		
							parent
							
								
									b2551a35e0
								
							
						
					
					
						commit
						6bd396f5a2
					
				| @ -365,10 +365,10 @@ func ubanInfoNick(client *Client, target ubanTarget, rb *ResponseBuffer) { | ||||
| 	if mcl != nil { | ||||
| 		details := mcl.Details() | ||||
| 		if details.account == "" { | ||||
| 			rb.Notice(fmt.Sprintf(client.t("Client %[1]s is unauthenticated and connected from %[2]s"), details.nick, client.IP().String())) | ||||
| 			rb.Notice(fmt.Sprintf(client.t("Client %[1]s is unauthenticated and connected from %[2]s"), details.nick, mcl.IP().String())) | ||||
| 		} else { | ||||
| 			rb.Notice(fmt.Sprintf(client.t("Client %[1]s is logged into account %[2]s and has %[3]d active clients (see /NICKSERV CLIENTS LIST %[4]s for more info"), details.nick, details.accountName, len(mcl.Sessions()), details.nick)) | ||||
| 			ip := client.IP() | ||||
| 			ip := mcl.IP() | ||||
| 			if !ip.IsLoopback() { | ||||
| 				rb.Notice(fmt.Sprintf(client.t("Client %[1]s is associated with IP %[2]s; you can ban this IP with /UBAN ADD"), details.nick, ip.String())) | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Shivaram Lingamneni
						Shivaram Lingamneni