mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +01:00
Factoid doesn't have effective-level, not the bot itself...
This commit is contained in:
parent
c9c39673d8
commit
9864ce09ae
@ -726,7 +726,7 @@ sub interpreter {
|
|||||||
return $action;
|
return $action;
|
||||||
} elsif ($action =~ s/^\/kick\s+//) {
|
} elsif ($action =~ s/^\/kick\s+//) {
|
||||||
if (not exists $self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'}) {
|
if (not exists $self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'}) {
|
||||||
return "/say $nick: I don't have the effective-level to do that.";
|
return "/say $nick: $keyword doesn't have the effective-level to do that.";
|
||||||
}
|
}
|
||||||
my $level = 10;
|
my $level = 10;
|
||||||
if ($self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'} >= $level) {
|
if ($self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'} >= $level) {
|
||||||
|
Loading…
Reference in New Issue
Block a user