From 938bdb2c3dd25fba032da6d0bc8d519c8285ab0c Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Sun, 8 Jul 2012 15:37:53 -0500 Subject: Reside in ##crawl, too (but don't log it just yet). --- lib/Crawl/Bot/Plugin/Logging.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Crawl/Bot/Plugin/Logging.pm b/lib/Crawl/Bot/Plugin/Logging.pm index c16ffaa..05748fb 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -68,7 +68,8 @@ sub said { my $self = shift; my ($args) = @_; - unless ($args->{channel} eq 'msg') { + # Only log the first channel + if ($args->{channel} eq $self->bot->{channels}[0]) { $self->log_message("<$args->{who}> $args->{body}"); } return; -- cgit v1.2.3-54-g00ecf