3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Plugin/TypoSub: notyposub registry entry now works properly

This commit is contained in:
Pragmatic Software 2020-03-09 20:19:44 -07:00
parent 73834144c8
commit 494cf6604b

View File

@ -40,7 +40,7 @@ sub on_public {
($nick, $user, $host) = $self->{pbot}->{irchandlers}->normalize_hostmask($nick, $user, $host);
my $nosubs = $self->{pbot}->{registry}->get_value($channel, 'notyposub');
return 0 if defined $nosubs and not $nosubs;
return 0 if defined $nosubs and $nosubs;
return 0 if $channel !~ m/^#/;
return 0 if $event->{interpreted};