mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Core/IgnoreList: allow specifying nickname as channel argument to ignore private messages
This commit is contained in:
		
							parent
							
								
									597820c053
								
							
						
					
					
						commit
						521e8850b0
					
				@ -51,7 +51,7 @@ sub add($self, $channel, $hostmask, $length, $owner) {
 | 
			
		||||
        $hostmask .= '@*';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $channel = '.*' if $channel !~ /^#/;
 | 
			
		||||
    $channel = '.*' if !defined $channel || $channel eq 'global';
 | 
			
		||||
 | 
			
		||||
    my $regex = quotemeta $hostmask;
 | 
			
		||||
    $regex =~ s/\\\*/.*?/g;
 | 
			
		||||
@ -91,7 +91,7 @@ sub remove($self, $channel, $hostmask) {
 | 
			
		||||
        $hostmask .= '@*';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $channel = '.*' if $channel !~ /^#/;
 | 
			
		||||
    $channel = '.*' if !defined $channel || $channel eq 'global';
 | 
			
		||||
 | 
			
		||||
    $self->{pbot}->{event_queue}->dequeue_event("ignore_timeout $channel $hostmask");
 | 
			
		||||
    return $self->{storage}->remove($channel, $hostmask);
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,7 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4803,
 | 
			
		||||
    BUILD_REVISION => 4804,
 | 
			
		||||
    BUILD_DATE     => "2024-10-15",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user