mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-27 13:12:42 +01:00
Ignore interpreted messages in AntiTwitter
This commit is contained in:
parent
6c1e15db80
commit
5efc55c306
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user