X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite.pl;h=f21f6ee9b2ebcf62a4a94bda3d8829e2ff052044;hb=0f99e523db38c4fec0abdbdf18f8173d44587a94;hp=c970e98e2463f410a2e012b69e553298c5b08323;hpb=407c4a8c3008e4b8e5482d9d7806c17efbff099c;p=videosite.git diff --git a/videosite.pl b/videosite.pl index c970e98..f21f6ee 100644 --- a/videosite.pl +++ b/videosite.pl @@ -87,6 +87,8 @@ sub check_for_link { return; } + study($message); + # Offer the message to all Grabbers in turn foreach $g (@grabbers) { ($m, $p) = $g->get($message); @@ -106,6 +108,7 @@ sub check_for_link { # Remove the matched part from the message and try again (there may be # more!) $message =~ s/$p//; + study($message); ($m, $p) = $g->get($message); } @@ -302,6 +305,7 @@ sub ploader { write_debug(undef, "found $g->{'TYPE'} $g->{'NAME'}"); if ($type eq $g->{'TYPE'}) { push(@g, $g); + $g->setio(sub {Irssi::print(shift)}); } else { write_irssi(undef, '%s has wrong type (got %s, expected %s)', $p, $g->{'TYPE'}, $type); delete($INC{$p});