return;
}
+ study($message);
+
# Offer the message to all Grabbers in turn
foreach $g (@grabbers) {
($m, $p) = $g->get($message);
# Remove the matched part from the message and try again (there may be
# more!)
$message =~ s/$p//;
+ study($message);
($m, $p) = $g->get($message);
}
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});