summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot/Plugin/Logging.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-01-25 00:43:16 -0600
committerJesse Luehrs <doy@tozt.net>2010-01-25 00:43:16 -0600
commit6a84735c5705f5f763c5f63b840d75a050c28d47 (patch)
tree18d3e135b18cda06eb5c1339c482d9a6e24c7b37 /lib/Crawl/Bot/Plugin/Logging.pm
parent4b56427b97221b4f725b36e2dd6f414329c707a8 (diff)
downloadcrawlbot-6a84735c5705f5f763c5f63b840d75a050c28d47.tar.gz
crawlbot-6a84735c5705f5f763c5f63b840d75a050c28d47.zip
also log messages sent by the bot
Diffstat (limited to 'lib/Crawl/Bot/Plugin/Logging.pm')
-rw-r--r--lib/Crawl/Bot/Plugin/Logging.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Crawl/Bot/Plugin/Logging.pm b/lib/Crawl/Bot/Plugin/Logging.pm
index 7f58fd0..1382392 100644
--- a/lib/Crawl/Bot/Plugin/Logging.pm
+++ b/lib/Crawl/Bot/Plugin/Logging.pm
@@ -130,4 +130,12 @@ sub userquit {
return;
}
+sub sent {
+ my $self = shift;
+ my ($args) = @_;
+
+ $self->log_message("<$args->{who}> $args->{body}");
+ return;
+}
+
1;