summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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;