mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	WHOIS command: don't anser queries for IRC servers
Thanks to Cahata for spotting this!
This commit is contained in:
		| @@ -1185,7 +1185,7 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req ) | |||||||
| 		 */ | 		 */ | ||||||
| 		if (!has_wildcards || is_remote) { | 		if (!has_wildcards || is_remote) { | ||||||
| 			c = Client_Search(query); | 			c = Client_Search(query); | ||||||
| 			if (c) { | 			if (c && Client_Type(c) == CLIENT_USER) { | ||||||
| 				if (!IRC_WHOIS_SendReply(Client, from, c)) | 				if (!IRC_WHOIS_SendReply(Client, from, c)) | ||||||
| 					return DISCONNECTED; | 					return DISCONNECTED; | ||||||
| 			} else { | 			} else { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton