mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-10-31 06:37:35 +01:00 
			
		
		
		
	Fix UrlTitles to use $stuff
This commit is contained in:
		
							parent
							
								
									0b9aaf8f79
								
							
						
					
					
						commit
						edfc01686c
					
				| @ -60,7 +60,13 @@ sub show_url_titles { | ||||
|       and grep { $channel =~ /$_/i } $self->{pbot}->{registry}->get_value('general', 'show_url_titles_channels')) { | ||||
| 
 | ||||
|     while ($msg =~ s/(https?:\/\/[^\s]+)//i && ++$event->{interpreted} <= 3) { | ||||
|       $self->{pbot}->{factoids}->{factoidmodulelauncher}->execute_module($channel, undef, $nick, $user, $host, $msg, $channel, "title", "title", "$nick $1"); | ||||
|       my $stuff = { | ||||
|         from => $channel, nick => $nick, user => $user, host => $host, | ||||
|         command => $msg, root_channel => $channel, root_keyword => "title", | ||||
|         keyword => "title", arguments => "$nick $1" | ||||
|       }; | ||||
| 
 | ||||
|       $self->{pbot}->{factoids}->{factoidmodulelauncher}->execute_module($stuff); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pragmatic Software
						Pragmatic Software