summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-01-24 23:40:45 -0600
committerJesse Luehrs <doy@tozt.net>2010-01-24 23:40:45 -0600
commit28739dabcc303676eadd0b4f2e37c48051fdecd0 (patch)
tree2e375be5da6afb357c0c4e8fdfa16d026b00fe9a /lib/Crawl/Bot.pm
parente25e9a1d5a5c5fa281b7b6ae4b9b06001a7013bd (diff)
downloadcrawlbot-28739dabcc303676eadd0b4f2e37c48051fdecd0.tar.gz
crawlbot-28739dabcc303676eadd0b4f2e37c48051fdecd0.zip
forward along most other informational methods to plugins
Diffstat (limited to 'lib/Crawl/Bot.pm')
-rw-r--r--lib/Crawl/Bot.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm
index 1f74762..111490d 100644
--- a/lib/Crawl/Bot.pm
+++ b/lib/Crawl/Bot.pm
@@ -57,6 +57,14 @@ sub tick {
return $self->update_time;
}
+for my $meth (qw(said emoted chanjoin chanpart
+ nick_change kicked topic userquit)) {
+ __PACKAGE__->meta->add_method($meth => sub {
+ my $self = shift;
+ $_->$meth(@_) for @{ $self->plugins };
+ });
+}
+
sub say_all {
my $self = shift;
my ($message) = @_;