mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Plugin/TypoSub: notyposub
registry entry now works properly
This commit is contained in:
parent
73834144c8
commit
494cf6604b
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user