mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +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;
|
||||
} elsif ($action =~ s/^\/kick\s+//) {
|
||||
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;
|
||||
if ($self->{factoids}->hash->{$channel}->{$keyword}->{'effective-level'} >= $level) {
|
||||
|
Loading…
Reference in New Issue
Block a user