mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Plugins/TypoSub: users can set no-typosub to exclude themselves from s/// invocation
				
					
				
			This commit is contained in:
		
							parent
							
								
									fc648c3351
								
							
						
					
					
						commit
						9e362725ce
					
				@ -43,6 +43,8 @@ sub on_public {
 | 
			
		||||
    my $nosubs = $self->{pbot}->{registry}->get_value($channel, 'notyposub');
 | 
			
		||||
    return 0 if defined $nosubs and $nosubs;
 | 
			
		||||
 | 
			
		||||
    return 0 if $self->{pbot}->{users}->get_loggedin_user_metadata($channel, "$nick!$user\@$host", 'no-typosub');
 | 
			
		||||
 | 
			
		||||
    return 0 if $channel !~ m/^#/;
 | 
			
		||||
    return 0 if $event->{interpreted};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user