diff options
author | Neil Moore <neil@s-z.org> | 2012-01-07 02:42:15 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-01-07 02:42:15 -0600 |
commit | e3d4efb879f22424b2a6d3cd9a310537817d8c3b (patch) | |
tree | 3c58d78743a95d6cad5b7a737d8bf8769137e22a /lib/Crawl | |
parent | ba01e970ee659b69b52d1e156f9e795f4d5e9ac4 (diff) | |
download | crawlbot-e3d4efb879f22424b2a6d3cd9a310537817d8c3b.tar.gz crawlbot-e3d4efb879f22424b2a6d3cd9a310537817d8c3b.zip |
Do not log private messages.
Diffstat (limited to 'lib/Crawl')
-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 f5e8ddb..24d6b7d 100644 --- a/lib/Crawl/Bot/Plugin/Logging.pm +++ b/lib/Crawl/Bot/Plugin/Logging.pm @@ -68,7 +68,9 @@ sub said { my $self = shift; my ($args) = @_; - $self->log_message("<$args->{who}> $args->{body}"); + unless ($args->{channel} eq 'message') { + $self->log_message("<$args->{who}> $args->{body}"); + } return; } |