diff options
author | Neil Moore <neil@s-z.org> | 2012-01-07 03:55:17 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-01-07 03:55:17 -0500 |
commit | d61e8e0c03fbda0291e9f1a1f230abf9dbacf657 (patch) | |
tree | 1532bdaa06f1c12f76dc0dfe15fe36ef7095cc55 | |
parent | 8c8e8bbbd8bb05e1aa4e59e4dac6636912501ad9 (diff) | |
download | crawlbot-d61e8e0c03fbda0291e9f1a1f230abf9dbacf657.tar.gz crawlbot-d61e8e0c03fbda0291e9f1a1f230abf9dbacf657.zip |
Do not log replies to private messages, either.
-rw-r--r-- | lib/Crawl/Bot/Plugin/Logging.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |