mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	Fix minor uninitialized object warning
This commit is contained in:
		
							parent
							
								
									f78e7bea88
								
							
						
					
					
						commit
						c04467b50f
					
				@ -389,7 +389,7 @@ sub add {
 | 
			
		||||
sub remove {
 | 
			
		||||
    my ($self, $primary_index, $secondary_index, $data_index, $dont_save) = @_;
 | 
			
		||||
    my $lc_primary_index   = lc $primary_index;
 | 
			
		||||
    my $lc_secondary_index = lc $secondary_index;
 | 
			
		||||
    my $lc_secondary_index = lc $secondary_index if defined $secondary_index;
 | 
			
		||||
 | 
			
		||||
    if (not exists $self->{hash}->{$lc_primary_index}) {
 | 
			
		||||
        my $result = "$self->{name}: $primary_index not found; similiar matches: ";
 | 
			
		||||
 | 
			
		||||
@ -25,8 +25,8 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4422,
 | 
			
		||||
    BUILD_DATE     => "2021-11-19",
 | 
			
		||||
    BUILD_REVISION => 4430,
 | 
			
		||||
    BUILD_DATE     => "2022-01-01",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
sub initialize {}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user