Ignore interpreted messages in AntiTwitter

This commit is contained in:
Pragmatic Software 2017-02-21 05:37:43 -08:00
parent 6c1e15db80
commit 5efc55c306
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ sub on_public {
my ($self, $event_type, $event) = @_;
my ($nick, $user, $host, $channel, $msg) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host, $event->{event}->{to}[0], $event->{event}->args);
return 0 if $event->{interpreted};
$channel = lc $channel;
return 0 if not $self->{pbot}->{chanops}->can_gain_ops($channel);