From e3d4efb879f22424b2a6d3cd9a310537817d8c3b Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sat, 7 Jan 2012 02:42:15 -0600 Subject: Do not log private messages. --- lib/Crawl/Bot/Plugin/Logging.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Crawl/Bot/Plugin/Logging.pm b/lib/Crawl/Bot/Plugin/Logging.pm index f5e8ddb..24d6b7d 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -68,7 +68,9 @@ sub said { my $self = shift; my ($args) = @_; - $self->log_message("<$args->{who}> $args->{body}"); + unless ($args->{channel} eq 'message') { + $self->log_message("<$args->{who}> $args->{body}"); + } return; } -- cgit v1.2.3-54-g00ecf