From d61e8e0c03fbda0291e9f1a1f230abf9dbacf657 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sat, 7 Jan 2012 03:55:17 -0500 Subject: Do not log replies to private messages, either. --- 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 4de428d..c16ffaa 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -140,7 +140,9 @@ sub sent { my $self = shift; my ($args) = @_; - $self->log_message("<$args->{who}> $args->{body}"); + unless ($args->{channel} eq 'msg') { + $self->log_message("<$args->{who}> $args->{body}"); + } return; } -- cgit v1.2.3-54-g00ecf