mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 22:13:00 +00:00 
			
		
		
		
	Handle services in IRC_WHOIS_SendReply()
If the target is a service, advertise it as such and ignore operator mode.
This commit is contained in:
		| @@ -361,8 +361,15 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c) | ||||
| 			return DISCONNECTED; | ||||
| 	} | ||||
|  | ||||
| 	/* IRC-Services? */ | ||||
| 	if (Client_Type(c) == CLIENT_SERVICE && | ||||
| 	    !IRC_WriteStrClient(from, RPL_WHOISSERVICE_MSG, | ||||
| 				Client_ID(from), Client_ID(c))) | ||||
| 		return DISCONNECTED; | ||||
|  | ||||
| 	/* IRC-Operator? */ | ||||
| 	if (Client_HasMode(c, 'o') && | ||||
| 	if (Client_Type(c) != CLIENT_SERVICE && | ||||
| 	    Client_HasMode(c, 'o') && | ||||
| 	    !IRC_WriteStrClient(from, RPL_WHOISOPERATOR_MSG, | ||||
| 				Client_ID(from), Client_ID(c))) | ||||
| 		return DISCONNECTED; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Federico G. Schwindt
					Federico G. Schwindt