mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Allow IRC ops to ignore channel limits when joining
Allow IRC ops to ignore any channel limit (bans, invite only etc.) when they want to join a channel.
This commit is contained in:
		 Rolf Eike Beer
					Rolf Eike Beer
				
			
				
					committed by
					
						 Alexander Barton
						Alexander Barton
					
				
			
			
				
	
			
			
			 Alexander Barton
						Alexander Barton
					
				
			
						parent
						
							2a790861a1
						
					
				
				
					commit
					83bfdddf99
				
			| @@ -70,6 +70,10 @@ join_allowed(CLIENT *Client, CLIENT *target, CHANNEL *chan, | ||||
| 	bool is_invited, is_banned; | ||||
| 	const char *channel_modes; | ||||
|  | ||||
| 	/* Allow IRC operators to overwrite channel limits */ | ||||
| 	if (strchr(Client_Modes(Client), 'o')) | ||||
| 		return true; | ||||
|  | ||||
| 	is_banned = Lists_Check(Channel_GetListBans(chan), target); | ||||
| 	is_invited = Lists_Check(Channel_GetListInvites(chan), target); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user