mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-03 13:17:33 +02:00
Correct minor logic error
This commit is contained in:
parent
b45b707ec2
commit
728e05e514
@ -187,7 +187,7 @@ sub blacklist {
|
|||||||
|
|
||||||
$channel = '.*' if not defined $channel;
|
$channel = '.*' if not defined $channel;
|
||||||
|
|
||||||
if(not exists $self->{blacklist}->{$channel} and not exists $self->{blacklist}->{$channel}->{$mask}) {
|
if(exists $self->{blacklist}->{$channel} and not exists $self->{blacklist}->{$channel}->{$mask}) {
|
||||||
$self->{pbot}->{logger}->log("$nick attempt to remove nonexistent [$mask][$channel] from blacklist\n");
|
$self->{pbot}->{logger}->log("$nick attempt to remove nonexistent [$mask][$channel] from blacklist\n");
|
||||||
return "$mask not found in blacklist for channel $channel (use `blacklist list` to display blacklist)";
|
return "$mask not found in blacklist for channel $channel (use `blacklist list` to display blacklist)";
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ sub unignore_user {
|
|||||||
$channel = ".*";
|
$channel = ".*";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(not exists ${ $self->{pbot}->{ignorelist}->{ignore_list} }{$target}{$channel}) {
|
if(exists $self->{pbot}->{ignorelist}->{ignore_list}->{$target} and not exists $self->{pbot}->{ignorelist}->{ignore_list}->{$target}->{$channel}) {
|
||||||
$self->{pbot}->{logger}->log("$nick attempt to remove nonexistent [$target][$channel] from ignore list\n");
|
$self->{pbot}->{logger}->log("$nick attempt to remove nonexistent [$target][$channel] from ignore list\n");
|
||||||
return "/msg $nick [$target][$channel] not found in ignore list (use `ignore list` to list ignores)";
|
return "/msg $nick [$target][$channel] not found in ignore list (use `ignore list` to list ignores)";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user