3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Ignore interpreted messages in AntiTwitter

This commit is contained in:
Pragmatic Software 2017-02-21 05:37:43 -08:00
parent 6c1e15db80
commit 5efc55c306

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);