On 2 Jul 2005, at 03:14, Robert Spier wrote:

Or the other way around - if the hook_* functions exist, have
register_hook called magically behind the scenes when you lookup whether
it "can" do the hooks.

Good idea.  This is cleaner.  Patch below.

Oh yeah and I meant to say - standard hooks should go first. That way you can have:

sub register {
  shift->register_hook('connect' => 'pickup_dnsbl_results');
}

sub hook_connect {
  # query dnsbl
  return CONTINUATION;
}

sub pickup_dnsbl_results {
  # pickup results
}

Reply via email to