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

Correct logic of login command ignore check

This commit is contained in:
Pragmatic Software 2015-09-07 05:04:54 -07:00
parent 1582b35db9
commit d51d2367a1

View File

@ -127,8 +127,7 @@ sub process_line {
last if not defined $command and not defined $has_url and not defined $has_code;
if((defined $command && $command !~ /^login/i) || defined $has_url || defined $has_code) {
if(defined $from && $pbot->{ignorelist}->check_ignore($nick, $user, $host, $from)) {
if((!defined $command || $command !~ /^login/) && defined $from && $pbot->{ignorelist}->check_ignore($nick, $user, $host, $from)) {
my $admin = $pbot->{admins}->loggedin($from, "$nick!$user\@$host");
if (!defined $admin || $admin->{level} < 10) {
# ignored hostmask
@ -155,7 +154,6 @@ sub process_line {
}
}
}
}
sub interpret {
my $self = shift;