mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	Plugins: ignore autoload entries that begin with a # comment
This commit is contained in:
		
							parent
							
								
									b35c6a0143
								
							
						
					
					
						commit
						5c9f185af6
					
				@ -66,8 +66,8 @@ sub autoload {
 | 
			
		||||
    $plugin = basename $plugin;
 | 
			
		||||
    $plugin =~ s/.pm$//;
 | 
			
		||||
 | 
			
		||||
    # do not load plugins that begin with an underscore
 | 
			
		||||
    next if $plugin =~ m/^_/;
 | 
			
		||||
    # do not load plugins that begin with a comment
 | 
			
		||||
    next if $plugin =~ m/^\s*#/;
 | 
			
		||||
 | 
			
		||||
    $plugin_count++ if $self->load($plugin, %conf)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user