summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-07-08 15:37:53 -0500
committerNeil Moore <neil@s-z.org>2012-07-08 15:37:53 -0500
commit938bdb2c3dd25fba032da6d0bc8d519c8285ab0c (patch)
tree84001b7ada7dcbe98c0d5e6c1813d04cf5a24a45 /lib
parent9ec1db5ec441f92830ff2e9f97e78d0710cda0f6 (diff)
downloadcrawlbot-938bdb2c3dd25fba032da6d0bc8d519c8285ab0c.tar.gz
crawlbot-938bdb2c3dd25fba032da6d0bc8d519c8285ab0c.zip
Reside in ##crawl, too (but don't log it just yet).
Diffstat (limited to 'lib')
-rw-r--r--lib/Crawl/Bot/Plugin/Logging.pm3
1 files changed, 2 insertions, 1 deletions
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;