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

Plugins/TypoSub: respect ignore list

This commit is contained in:
Pragmatic Software 2020-04-09 11:42:17 -07:00
parent 917ceb4912
commit a857cbc5ef

View File

@ -39,6 +39,7 @@ sub on_public {
($nick, $user, $host) = $self->{pbot}->{irchandlers}->normalize_hostmask($nick, $user, $host);
return 0 if $self->{pbot}->{ignorelist}->is_ignored($channel, "$nick!$user\@$host");
my $nosubs = $self->{pbot}->{registry}->get_value($channel, 'notyposub');
return 0 if defined $nosubs and $nosubs;