diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-01-24 23:40:45 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-01-24 23:40:45 -0600 |
commit | 28739dabcc303676eadd0b4f2e37c48051fdecd0 (patch) | |
tree | 2e375be5da6afb357c0c4e8fdfa16d026b00fe9a /lib/Crawl/Bot.pm | |
parent | e25e9a1d5a5c5fa281b7b6ae4b9b06001a7013bd (diff) | |
download | crawlbot-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.pm | 8 |
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) = @_; |