kike: always allow IRCops to change channel modes
This commit is contained in:
		
							
								
								
									
										4
									
								
								kike.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								kike.c
									
									
									
									
									
								
							@@ -1747,8 +1747,8 @@ mode_processor_next_param (struct mode_processor *self)
 | 
			
		||||
static bool
 | 
			
		||||
mode_processor_check_operator (struct mode_processor *self)
 | 
			
		||||
{
 | 
			
		||||
	if (self->user && ((self->user->modes & IRC_CHAN_MODE_OPERATOR)
 | 
			
		||||
		|| (self->c->mode & IRC_USER_MODE_OPERATOR)))
 | 
			
		||||
	if ((self->user && (self->user->modes & IRC_CHAN_MODE_OPERATOR))
 | 
			
		||||
		|| (self->c->mode & IRC_USER_MODE_OPERATOR))
 | 
			
		||||
		return true;
 | 
			
		||||
 | 
			
		||||
	irc_send_reply (self->c, IRC_ERR_CHANOPRIVSNEEDED, self->channel->name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user