diff options
author | Neil Moore <neil@s-z.org> | 2012-01-03 12:30:37 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-01-03 12:30:37 -0600 |
commit | 4759d8bd389b2a70950c28d1973c76366e07ba47 (patch) | |
tree | ed584d59b51a86f7d44ada28a2e5dff1dc5fdb9a | |
parent | 49b8fd93afa1a4981cbba011ed0f09e5403ccd93 (diff) | |
download | crawlbot-4759d8bd389b2a70950c28d1973c76366e07ba47.tar.gz crawlbot-4759d8bd389b2a70950c28d1973c76366e07ba47.zip |
Return undef after calling plugin methods.
If not, newer versions of Bot::BasicBot will take a false-but-defined
return value to indicate that another method should be called; this
seems to result in the bot responding to joins.
-rw-r--r-- | lib/Crawl/Bot.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm index 0c57255..3f5ecd1 100644 --- a/lib/Crawl/Bot.pm +++ b/lib/Crawl/Bot.pm @@ -65,6 +65,7 @@ for my $meth (qw(said emoted chanjoin chanpart __PACKAGE__->meta->add_method($meth => sub { my $self = shift; $_->$meth(@_) for @{ $self->plugins }; + undef; }); } |