3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

Fix UrlTitles properly

This commit is contained in:
Pragmatic Software 2017-11-19 14:06:17 -08:00
parent b84183e30c
commit 1557bbc219

View File

@ -62,7 +62,7 @@ sub show_url_titles {
while ($msg =~ s/(https?:\/\/[^\s]+)//i && ++$event->{interpreted} <= 3) { while ($msg =~ s/(https?:\/\/[^\s]+)//i && ++$event->{interpreted} <= 3) {
my $stuff = { my $stuff = {
from => $channel, nick => $nick, user => $user, host => $host, from => $channel, nick => $nick, user => $user, host => $host,
command => $msg, root_channel => $channel, root_keyword => "title", command => "title $nick $1", root_channel => $channel, root_keyword => "title",
keyword => "title", arguments => "$nick $1" keyword => "title", arguments => "$nick $1"
}; };