From 5efc55c3069bf0564ed019a4aad8921012997e35 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 21 Feb 2017 05:37:43 -0800 Subject: [PATCH] Ignore interpreted messages in AntiTwitter --- PBot/Plugins/AntiTwitter.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/Plugins/AntiTwitter.pm b/PBot/Plugins/AntiTwitter.pm index 3f863284..4700dd59 100644 --- a/PBot/Plugins/AntiTwitter.pm +++ b/PBot/Plugins/AntiTwitter.pm @@ -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);