mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-10-31 14:47:27 +01:00 
			
		
		
		
	Factoids: fix minor issue with factadd
This commit is contained in:
		
							parent
							
								
									1c43699e6d
								
							
						
					
					
						commit
						f173b43c8d
					
				| @ -95,7 +95,7 @@ sub add_factoid { | ||||
| 
 | ||||
|   my $data; | ||||
| 
 | ||||
|   if (exists $self->{factoids}->{hash}->{lc $channel}->{lc $trigger}) { | ||||
|   if (exists $self->{factoids}->{hash}->{lc $channel} and exists $self->{factoids}->{hash}->{lc $channel}->{lc $trigger}) { | ||||
|     # only update action field if force-adding it through factadd -f | ||||
|     $data = $self->{factoids}->{hash}->{lc $channel}->{lc $trigger}; | ||||
|     $data->{action} = $action; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pragmatic Software
						Pragmatic Software