From 4759d8bd389b2a70950c28d1973c76366e07ba47 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Tue, 3 Jan 2012 12:30:37 -0600 Subject: 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. --- lib/Crawl/Bot.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Crawl/Bot.pm') 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; }); } -- cgit v1.2.3-54-g00ecf