summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-01-03 12:30:37 -0600
committerNeil Moore <neil@s-z.org>2012-01-03 12:30:37 -0600
commit4759d8bd389b2a70950c28d1973c76366e07ba47 (patch)
treeed584d59b51a86f7d44ada28a2e5dff1dc5fdb9a
parent49b8fd93afa1a4981cbba011ed0f09e5403ccd93 (diff)
downloadcrawlbot-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.pm1
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;
});
}