mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Fix NAMES response when client has multi-prefix
Two fixes here: IRC_Send_NAMES was checking the capability of the wrong client when responding, and it didn't return any prefix for clients that had either +v or +o but not both.
This commit is contained in:
		| @@ -1578,9 +1578,9 @@ IRC_Send_NAMES(CLIENT * Client, CHANNEL * Chan) | ||||
| 		if (is_member || is_visible) { | ||||
| 			if (str[strlen(str) - 1] != ':') | ||||
| 				strlcat(str, " ", sizeof(str)); | ||||
| 			if (Client_Cap(cl) & CLIENT_CAP_MULTI_PREFIX) { | ||||
| 				if (strchr(Channel_UserModes(Chan, cl), 'o') && | ||||
| 				    strchr(Channel_UserModes(Chan, cl), 'v')) | ||||
| 			if (Client_Cap(Client) & CLIENT_CAP_MULTI_PREFIX &&  | ||||
| 					strchr(Channel_UserModes(Chan, cl), 'o') && | ||||
| 					strchr(Channel_UserModes(Chan, cl), 'v')) { | ||||
| 				strlcat(str, "@+", sizeof(str)); | ||||
| 			} else { | ||||
| 				if (strchr(Channel_UserModes(Chan, cl), 'o')) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Collins
					Brian Collins