mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Obey ignorelist in Counter plugin on_public()
This commit is contained in:
		
							parent
							
								
									99e505b811
								
							
						
					
					
						commit
						fb846a36ed
					
				@ -588,6 +588,13 @@ sub on_public {
 | 
			
		||||
  my ($nick, $user, $host, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->args);
 | 
			
		||||
  my $channel = $event->{event}->{to}[0];
 | 
			
		||||
 | 
			
		||||
  if ($self->{pbot}->{ignorelist}->check_ignore($nick, $user, $host, $channel, 1)) {
 | 
			
		||||
    my $admin = $self->{pbot}->{admins}->loggedin($channel, "$nick!$user\@$host");
 | 
			
		||||
    if (!defined $admin || $admin->{level} < 10) {
 | 
			
		||||
      return 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (not $self->dbi_begin) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user