Permalink
Browse files

Added error reporting

  • Loading branch information...
1 parent 1cb5306 commit 017247839c11d66908ef72e47e1fcd825876009e @tadzik committed May 21, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 a8bot.pm
View
@@ -82,6 +82,10 @@ sub BUILD {
);
}
},
+ error => sub {
+ my ($code, $message, $ircmsg) = @_;
+ $self->log("Error $code: $message");
+ },
publicmsg => sub {
my ($client, $channel, $params) = @_;
foreach my $plugin ($self->list_plugins) {

0 comments on commit 0172478

Please sign in to comment.